DELETE/pet/{petId}

Delete a pet

Deletes a pet from the store. Supply petId to identify the pet to remove; you can also send the optional api_key header.

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

3 status codes
200Confirms that the pet was deleted.
400Returned when the pet value is invalid.
defaultUnexpected error

Error handling

A 400 is returned when the pet value is invalid. The petId path parameter identifies the pet to delete.