> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unpublish from Public Archive

> Remove a campaign from your public newsletter archive

Remove the campaign from your public newsletter archive. The issue disappears from the archive listing and its page returns 404. Archive pages are cached by a CDN for up to 60 seconds, so the page can stay reachable for that long.

The issue's URL slug is kept, so [publishing](https://docs.sequenzy.com/api-reference/campaigns/public-archive-publish.md) the campaign again restores the same URL. The call is idempotent: unpublishing a campaign that was not published succeeds with `publicArchive: false`.

Requires the `campaigns:write` scope.

## Request

**campaignId** `string` *required*

Campaign ID.

This endpoint does not accept a request body.

```bash theme={null}
curl -X DELETE "https://api.sequenzy.com/api/v1/campaigns/camp_abc123/public-archive" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response fields

**campaignId** `string`

The campaign ID.

**publicArchive** `boolean`

`false` after this call.

**archiveSlug** `string | null`

The issue's URL slug, kept for republishing. `null` if the campaign was never published.

**archiveUrl** `string | null`

Always `null` while the campaign is unpublished.

**archiveLive** `boolean`

Always `false` while the campaign is unpublished.

```json 200 theme={null}
{
  "success": true,
  "campaignId": "camp_abc123",
  "publicArchive": false,
  "archiveSlug": "april-launch",
  "archiveUrl": null,
  "archiveLive": false
}
```

```json 400 theme={null}
{
  "success": false,
  "error": "Only email campaigns can be published to the archive."
}
```

```json 401 theme={null}
{
  "success": false,
  "error": "Unauthorized"
}
```

```json 403 theme={null}
{
  "success": false,
  "error": "API key is missing required scope: campaigns:write"
}
```

```json 404 theme={null}
{
  "success": false,
  "error": "Campaign not found"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.