Swagger Petstore - OpenAPI 3.0
DELETE/pet/{petId}

Delete a pet

Deletes a specific pet from the store. Supply petId to identify the pet to remove and send api_key when API-key authentication is required. A successful response confirms that the pet was deleted.

2 parameters
petIdintegerrequired
The unique integer identifier of the pet to delete.
api_keystringoptional
An API key used to authorize the deletion when authentication is

3 status codes
200Confirms that the pet identified by `petId` was deleted.
400Returned when the supplied pet value is invalid.
defaultUnexpected error

Error handling

The petId value must identify the pet to delete. If an API key is used, send it in the api_key header; invalid pet input returns a 400.