Skip to main content

Delete a pet

Delete a pet from the database.

DELETE https://petstore3.swagger.io/api/v3/pet/{petId}

Examples

cURL
DELETE "https://petstore3.swagger.io/api/v3/pet/210" \
-H "api_key: <YOUR_API_KEY>"

Responses

CodeDescription
200Pet deleted
400Invalid ID supplied
404Pet not found

A successful deletion returns a 200 code with no response body.

Parameters

Path parameters
NameTypeDescription
petIdintegerID of pet to delete