DELETE/pet/{petId}

Delete a pet

Deletes a pet record from the store. Supply petId to identify the pet to delete, and include api_key if your request requires an API key. The operation confirms deletion when it succeeds.

2 parameters
petIdintegerrequired
The integer identifier of the pet to delete.
api_keystringoptional
An optional API key header.

3 status codes
200Confirms that the pet was deleted.
400Returned when the supplied pet value is invalid.
defaultReturned when an unexpected error occurs.

Error handling

A 400 is returned when the petId path parameter has an invalid value. The optional api_key header can be included with the request.