> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/cloud/emails/campaigns/stop.md).

# Stop a campaign

Stop an email campaign that is scheduled or still sending.

**Where:** Email → Campaigns → a campaign → **Stop campaign** · `/projects/<project>/emails/campaigns/<campaignId>/view`

Stop is the brake: a scheduled campaign never starts, and a running one sends no more batches.

## Before you start

* A campaign in status **Scheduled**, **Registered**, **Started** or **Processing**. The red **Stop campaign** button is shown only then.
* Permission `email:update` (built-in **Developer** or **Administrator**).

## Steps

1. Open the campaign from the [list](/codemash/cloud/emails/campaigns.md) (**View**). Here: the scheduled `Monthly newsletter`.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-afd1c2fad8e4c63fa76d978fa4730808ac011eac%2Fcampaigns-stop-1.png?alt=media" alt="Email Campaign details of a Scheduled campaign with the red Stop campaign button next to Actions"><figcaption><p>A scheduled campaign with <strong>Stop campaign</strong>.</p></figcaption></figure>
2. Press **Stop campaign**. The browser asks: "Stop this campaign? Batches already being sent will finish, but no new recipients will be emailed. This cannot be undone." Press **OK**. The button reads **Stopping…** for a moment.

## Result

The status badge and **Status** change to **Stopped** and the button disappears. No new batch starts, and nobody who was not yet emailed gets the email. A batch that was already sending may finish its current emails; the campaign still stays **Stopped**.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-01e631a1dc818c3feb085f353aee31fa756dc3b9%2Fcampaigns-stop-2.png?alt=media" alt="Email Campaign details with the Stopped badge and Status Stopped; no Stop campaign button"><figcaption><p>The campaign is <strong>Stopped</strong>.</p></figcaption></figure>

* **Stopped is final.** There is no resume.
* **An ended campaign cannot be stopped.** Stopping a Completed, Failed or Stopped campaign through the API is refused with `CM-ERRORS-CAMPAIGNS-016` ("The campaign has already ended … and cannot be stopped").
* **Turning Email off** stops every running and scheduled campaign at once — see [Settings](/codemash/cloud/emails/settings.md).

## Change or remove it later

Open **Actions** on the stopped campaign:

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-41b65210de70cd98bcc4796a50f1027509752624%2Fcampaigns-stop-3.png?alt=media" alt="Actions menu of a stopped campaign: Create new from this, Delete campaign..., See documentation"><figcaption><p>Actions of a stopped campaign.</p></figcaption></figure>

* **Create new from this** — opens [the campaign form](/codemash/cloud/emails/campaigns/new.md) with the same template picked.
* **Delete campaign...** — the browser asks "Delete this campaign? Its batches and message log are deleted with it. This cannot be undone."; after **OK** you are back on the list.

## Do it from code

```ts
await norbix.hub.notifications.stopEmailCampaign({ id }); // id = 'cmp_…'
// read back: status 'Stopped'
```

```sh
norbix hub notifications email campaign stop --id cmp_3jfIW1gDmceoJEnah3Grcp --yes
```

API: [Stop Email Campaign](/codemash/api-reference/notifications/email/stop-email-campaign.md) · [Delete Email Campaign](/codemash/api-reference/notifications/email/delete-email-campaign.md)
