> 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/payments/triggers/delete.md).

# Delete a trigger

Delete a payment trigger for good.

**Where:** Payments → Triggers → click a trigger → **Actions** → **Delete trigger...** · `/projects/<project>/payments/triggers/<triggerId>/edit`

## Before you start

* The trigger exists — see [Create a trigger](/codemash/cloud/payments/triggers/new.md).
* To stop it only for a while, [disable it](/codemash/cloud/payments/triggers/enable.md) instead: a deleted trigger cannot be brought back.

## Steps

1. Open the trigger, here `Old test trigger`, press **Actions** and choose **Delete trigger...**.
2. The dialog **Delete Confirmation** asks *Are you sure you want to delete?* Press **Delete** (or **Cancel** to keep it).

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-6f5808d9b15f0cd9358be3d7ca1e21e0ebfb64ef%2Ftriggers-delete-1.png?alt=media" alt="The dialog Delete Confirmation: Are you sure you want to delete? with Cancel and Delete"><figcaption><p>The delete dialog.</p></figcaption></figure>

## Result

The trigger is gone from **Payments Triggers** and does not run any more. Emails or webhooks it already sent stay where they are (for example in **Email → Campaigns**).

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-64f40baa670ab7bd8f8d0199d6bc7b489fc2aca2%2Ftriggers-delete-2.png?alt=media" alt="Payments Triggers list with two rows left: Tell support about refunds and Email billing when a payment succeeds"><figcaption><p>The list after the delete.</p></figcaption></figure>

## Change or remove it later

* There is no undo. [Create the trigger](/codemash/cloud/payments/triggers/new.md) again if you need it.

## Do it from code

```ts
await norbix.hub.payments.deletePaymentsTrigger({ triggerId, triggerType: 'Payments' });
```

```sh
norbix hub payments trigger delete --triggerId trg_1fGLaQTQrErUO1JsbJnTnz --triggerType Payments --yes
```

The client setup is on the [Payments page](/codemash/cloud/payments.md#use-it-from-code). API: [Delete Payments Trigger](/codemash/api-reference/payments/triggers/delete-payments-trigger.md)
