Skip to content
Get started

Deletes a pet.

DELETE/pets/{petId}

Deletes a pet.

Path ParametersExpand Collapse
petId: number
formatint64

Deletes a pet.

curl http://localhost:4000/api/v3/pets/$PET_ID \
    -X DELETE \
    -H "Authorization: Bearer $BARKEND_BEARER_TOKEN"
{
  "error": {
    "id": "invalid_id",
    "message": "Invalid pet value"
  }
}
{
  "error": {
    "id": "not_found",
    "message": "Pet not found"
  }
}
Returns Examples
{
  "error": {
    "id": "invalid_id",
    "message": "Invalid pet value"
  }
}
{
  "error": {
    "id": "not_found",
    "message": "Pet not found"
  }
}