> 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/push/templates/delete.md).

# Delete a template

Delete a push template for good.

**Where:** Push → Templates → a template → **Actions** → **Delete** · `/projects/<project>/push/templates/<templateId>/edit`

## Before you start

* Make sure no campaign, scheduler task or trigger still needs the template — a deleted template cannot be restored. To only take it out of use, [archive](/codemash/cloud/push/templates/publish.md) it instead.

## Steps

1. Open the template — here a clone of `Weekend sale` — and choose **Actions → Delete**.
2. The dialog **Delete Confirmation** asks *Are you sure you want to delete?* Press **Delete** (or **Cancel**).

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-24bdff0ff57587123abfc4195fde999c5bd0137e%2Ftemplates-delete-1.png?alt=media" alt="Delete Confirmation dialog over the Edit Push Template page: Are you sure you want to delete? with Cancel and Delete"><figcaption><p>The delete confirmation.</p></figcaption></figure>

## Result

Cloud returns to the [templates list](/codemash/cloud/push/templates.md), and the template is gone. Campaigns that already sent it keep their record.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-415d66d7e6830d4db923bbd1e1e84024fe6f4588%2Ftemplates-delete-2.png?alt=media" alt="Push Templates list after the delete, with one Weekend sale left"><figcaption><p>The list after the delete.</p></figcaption></figure>

## Change or remove it later

* A deleted template cannot be brought back. Create it again with [Create or edit a template](/codemash/cloud/push/templates/editor.md); it gets a new id.

## Do it from code

```ts
await norbix.hub.notifications.deletePushTemplate({ id: 'tmpl_6agfvbRRfBg5SJ8EI01FqE' });
```

```sh
norbix hub notifications push template delete --id tmpl_2ghEVN2y6zJ29Adb1tPOby --yes
```

The client setup is on the [Push page](/codemash/cloud/push.md#use-it-from-code). API: [Delete Push Template](/codemash/api-reference/notifications/push/delete-push-template.md)
