> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/campaigns/delete-a-campaign.md).

# Delete a Campaign

### 🗑️ Delete a Campaign

Remove a campaign from your account by referencing its unique ID.

***

#### 🔹 HTTP Request

```http
DELETE API-URL/campaigns/CAMPAIGN-UNIQUE-ID
```

***

#### 🔸 URL Segments

| Segment              | Required | Description                   |
| -------------------- | -------- | ----------------------------- |
| `CAMPAIGN-UNIQUE-ID` | Yes      | Campaign unique ID to delete. |

***

#### 🔐 Authorization Header

```
X-API-KEY: your-api-key-here
```

***

#### 💻 PHP Example

```php
// Delete CAMPAIGN
$response = $endpoint->delete('CAMPAIGN-UNIQUE-ID');

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
```

***

#### 📦 Sample JSON Response

```json
{
  "status": "success"
}
```
