Skip to content

deletePet

DELETE
/pets/{id}
curl --request DELETE \
--url https://petstore.swagger.io/v2/pets/1

Deletes a single pet based on the ID supplied

id
required
integer format: int64

ID of pet to delete

Pet deleted

Unexpected error

Media type application/json
object
code
required
integer format: int32
message
required
string
Example generated
{
"code": 1,
"message": "example"
}