# Deletes a pet.

Delete a pet.

[Deletes a pet.](https://clay-doc.github.io/clay-example-repo/de/api/petstore/pet/delete-pet.md)

```sh
curl -X DELETE 'https://petstore3.swagger.io/api/v3/pet/0' \
  -H 'Authorization: Bearer <token>'
```
## Authentifizierung

::: fields
- `petstore_auth` *write:pets* *read:pets*

  [OAuth 2.0](https://clay-doc.github.io/clay-example-repo/de/api/petstore.md#authentifizierung)
:::

## Parameter

::: fields
- `api_key` string *header*
- `petId` integer (int64) **erforderlich** *path*

  Pet id to delete
:::

## Antworten

::: tabs status
== 200

Pet deleted

== 400

Invalid pet value

== default

Unexpected error
:::

---

All pages of these docs, as Markdown for language models: https://clay-doc.github.io/clay-example-repo/de/llms.txt
