# Delete destination

> Removes the destination and its stored credentials. Media already delivered to your bucket stays where it is; tasks still naming this destination start failing delivery.

`DELETE /destinations/{id}`

**Auth:** API key or OAuth token

## Path parameters

- `id` (required, string) — The destination to delete. Example `"dst_01KE7XWWEQ4MCGWKBQKJ1G47RP"`.

## Response

### 204 — Destination deleted

No body.

## Request samples

### cURL

```bash
curl -X DELETE https://api.mynth.io/destinations/dst_01KE7XWWEQ4MCGWKBQKJ1G47RP \
  -H "Authorization: Bearer $MYNTH_API_KEY"
```

### JavaScript

```ts
const response = await fetch("https://api.mynth.io/destinations/dst_01KE7XWWEQ4MCGWKBQKJ1G47RP", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.MYNTH_API_KEY}`,
  },
});

const { data } = await response.json();
```

The full schema for this endpoint is in the [OpenAPI document](https://api.mynth.io/openapi.json).
