Pets
Delete a pet
Delete a pet by its numeric identifier.
Deletes a pet identified by its numeric ID.
Delete a pet from the store.
DELETE
/pet/{petId}OAuth 2.0 bearer token with `write:pets` and `read:pets` scopes.
Optional header parameter declared by the operation.
ID of the pet to delete.
Response
{200}Pet deleted
{400}Invalid pet value
cURL
curl --request DELETE \ --url https://petstore3.swagger.io/api/v3/pet/10 \ --header 'Authorization: Bearer example_access_token' \ --header 'api_key: example_api_key'
No response body is defined by the OpenAPI contract.
This operation removes data. Confirm the pet ID before sending the request.
The contract also defines a default Unexpected error response without a fixed status or body schema.