---
title: "Delete a campaign"
method: DELETE
path: "/api/v1/campaigns/{id}"
tags: ["Campaigns"]
---

# Delete a campaign

`DELETE /api/v1/campaigns/{id}`

## Request

- Base URL: `https://api.sendly.now`
- URL: `https://api.sendly.now/api/v1/campaigns/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`
  - OAuth 2 (authorization code, authorization URL `https://app.sendly.now/api/auth/oauth2/authorize`, token URL `https://app.sendly.now/api/auth/oauth2/token`, scopes: `campaigns:write`)

Delete a `DRAFT` campaign. A campaign that has sent is the record of what went out and cannot be deleted (400) — cancel it instead if it is still scheduled or in flight.

Requires the `campaigns:write` scope — Create, edit, and organize your campaigns.

## Path parameters

- `id` string, uuid, required: Resource id.

## Response `200`

Campaign deleted

- CampaignV1Deleted: Acknowledgement that a campaign was deleted.
  - `deleted` true, required
  - `id` string, uuid, required

## Other responses

- `400`: `validation_error` — only `DRAFT` campaigns can be deleted.
- `401`: `invalid_api_key` or `invalid_session` — missing or invalid credentials.
- `403`: `scope_missing`, `project_access_denied`, or `project_disabled`.
- `404`: `resource_not_found` — no campaign with this id belongs to the authenticated project.
- `422`: `validation_error` — query, path, or body parameters did not match the schema.
- `429`: `rate_limited` — see `Retry-After` and the `RateLimit` headers.
- `500`: `internal_error`.

---

[API](https://skmtc.dev/sendly/apis/sendly-api.md) · [All operations](https://skmtc.dev/sendly/apis/sendly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sendly/apis/sendly-api/revisions/ce7cfb7f7c7e?raw)
