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

Delete a pet

Deletes a specific pet from the store. Use petId to identify the pet to remove, and send api_key when your integration requires the optional API key header.

2 parameters
petIdintegerrequired
The 64-bit integer identifier of the pet to delete.
api_keystringoptional
An optional API key used to authorize the deletion request.

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

Error handling

petId must be a valid 64-bit integer identifying the pet to delete. An invalid pet value returns a 400; api_key can be supplied as a string header when required by the integration.