Delete a pet
Delete a pet from the database.
DELETE https://petstore3.swagger.io/api/v3/pet/{petId}
Examples
- API Key
- OAuth 2.0
cURL
DELETE "https://petstore3.swagger.io/api/v3/pet/210" \
-H "api_key: <YOUR_API_KEY>"
cURL
DELETE "https://petstore3.swagger.io/api/v3/pet/210" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
Responses
| Code | Description |
|---|---|
| 200 | Pet deleted |
| 400 | Invalid ID supplied |
| 404 | Pet not found |
A successful deletion returns a 200 code with no response body.
Parameters
Path parameters
| Name | Type | Description |
|---|---|---|
petId | integer | ID of pet to delete |