# Delete Analytics Publication

Stop a publication for good. It cannot be undone; its delivery history is kept. To stop it for a while, set isActive to false with Update Analytics Publication instead.

`DELETE https://connect.mindcloud.co/v2/analytics/pages/:pageId/publications/:publicationId`

Permissions: `analytics:page:create`.

## Parameters

### Path

- `pageId` (string, required): The page id, from List Analytics Pages.
- `publicationId` (string, required): The publication id, from List Analytics Publications.

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. Here a key acts in another organization only as one of its members: with "Use this key across all of your organizations" on, in an organization its creator belongs to with a role. Child organizations and MindCloud staff access do not reach this endpoint. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

## Example request

```bash
curl --request DELETE \
  --url 'https://connect.mindcloud.co/v2/analytics/pages/Pq7Lm2Xc9RtA/publications/Pb5Ty3Ws7KdM' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `id` (string): The id of the resource that was deleted.
