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

# Delete Announcement

> Delete an announcement and its read stats.

Deletes an announcement, in any status. It leaves everyone's feed, and its read stats are deleted with it.

To take a sent announcement off the feed and keep its read stats, use [Remove Announcement](https://docs.xenia.team/api-reference/endpoints/announcements/remove-announcement.md) instead.

> [!NOTE]
>
> Announcements must be on your workspace's plan. Otherwise every Announcements endpoint returns `403` with "Workspace doesn't have "Announcements" feature activated."

## Permissions

The key acts as its default user, or the user in the `x-client-user` header (who must be in the workspace). That user's role permissions apply.

* **Manage All Announcements**: any announcement in the workspace
* **Create & Manage Own Announcements**: announcements the user created

## Path parameters

**workspaceId** `string\<uuid\>` *required*

UUID of the workspace. Must be the workspace your API key is bound to.

**announcementId** `string\<uuid\>` *required*

UUID of the announcement.

## Response

Returns `200` with `{ "data": { "id": "<announcementId>" } }`.

## Errors

Errors return the message at `error.message`.

| Status | When |
| - | - |
| `401` | Invalid client credentials |
| `403` | Announcements isn't on the workspace's plan |
| `403` | The user doesn't have Create & Manage Own Announcements or Manage All Announcements |
| `403` | The announcement was created by someone else and the user doesn't have Manage All Announcements |
| `404` | "Announcement not found." |
| `409` | The announcement is shared with franchisees or posted to a channel. Delete it in the Xenia app |

```bash cURL theme={null}
curl -X DELETE "https://api.xenia.team/api/v1/ops/workspaces/{workspaceId}/announcements/{announcementId}" \
  -H "x-client-key: YOUR_CLIENT_KEY" \
  -H "x-client-secret: YOUR_CLIENT_SECRET"
```

```json 200 theme={null}
{
  "data": { "id": "6a1f…" }
}
```


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