DELETE/pet/{petId}

Delete a pet

Deletes a pet from the store. Supply the pet's petId path parameter; you can also send the optional api_key header. A successful response confirms that the pet was deleted.

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

3 status codes
200Returns a confirmation that the pet was deleted.
400Returned when the supplied pet value is invalid.
defaultUnexpected error

Error handling

A 400 is returned when the petId path parameter is not a valid pet value. The optional api_key header accepts a string value.