Delete Pet

Delete Pet

Delete a pet.

Request
URI
DELETE
https://petstore3.swagger.io/pet/{petId}
COPY
Path Parameters
integer
petId
Required

Pet id to delete

Header Parameters
string
api_key
Optional

api_key


Authentication
This operation uses the following authentication methods.
Responses
200

Pet deleted

Operation doesn't return any data structure

400

Invalid pet value

Operation doesn't return any data structure

default

Unexpected error

Returns Error of type(s) application/json
{
    "code": "string",
    "message": "string"
}
string
code
Required

code

string
message
Required

message


Code Samples
COPY
                    curl -X DELETE -H 'Authorization: <value>' https://{api_host}/pet/{petId}