DELETE/pet/{petId}

Delete a pet

Deletes a pet from the store. Supply the pet's identifier in the path. Optionally pass an API key in the header for authentication. This operation is irreversible.

2 parameters
petIdintegerrequired

The unique identifier of the pet to delete.

api_keystringoptional

Optional API key for authentication.

3 status codes
200Confirms the pet was deleted successfully.
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 values return a 400.