Axerity

Delete a pet

Delete a pet.

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

Headers

api_key string

Your store API key.

Path parameters

petId integer required

The id of the pet to delete.

Returns

code integer

The HTTP status code of the result.

Request
curl -X DELETE https://petstore3.swagger.io/api/v3/pet/10 \  -H "api_key: special-key"
Response
{ "code": 200, "message": "Pet deleted" }