DELETE
/pet/{petId}Delete a pet
Deletes a pet from the store. Use the petId path parameter to identify the pet to delete, and provide the optional api_key header if applicable. The response confirms that the pet was deleted.
petIdintegerrequired
The 64-bit integer identifier of the pet to delete.
api_keystringoptional
An optional API key to send in the request header.
200Returns a confirmation that the pet was deleted.
400Returned when the pet value is invalid.
defaultReturned when an unexpected error occurs.
Error handling
A 400 is returned for an invalid pet value. The petId path parameter must be a 64-bit integer; you can also send the optional api_key header.