DELETE
/pet/{petId}Delete a pet
Deletes a pet from the store. Supply the pet's identifier in the path. Optionally provide an API key in the header for authentication. This operation is irreversible.
petIdintegerrequired
The unique identifier of the pet to delete.
api_keystringoptional
Optional API key for authentication. Include in the header if required by your API configuration.
200Confirms the pet was successfully deleted.
400Returned when `petId` is not a valid integer or the pet value is invalid.
defaultUnexpected error
Error handling
petId must be a valid integer — non-numeric or invalid values return a 400.