> 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/integrations/disable.md).

# Disable or delete an integration

Disable a payment integration (its webhook calls are refused) or delete it for good.

**Where:** Payments → Integrations → an integration → **Actions** · `/projects/<project>/payments/integrations/<integrationId>/edit`

## Before you start

* The integration exists — see [Providers](/codemash/cloud/payments/integrations/providers.md).
* While an integration is off, the provider's calls to its webhook URL get **409** and no trigger runs. Most providers retry for a while and then stop; events missed meanwhile are not run later.

## Steps

1. Open the integration, here `Braintree sandbox`, and press **Actions**. The menu has **Disable**, **See Braintree documentation**, **See SDK documentation**, **See API documentation** and **Delete**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-4313723ad2f0172fcc73e1089e741566a34dfb3f%2Fintegrations-disable-1.png?alt=media" alt="Editing Braintree integration with the Actions menu open: Disable, See Braintree documentation, See SDK documentation, See API documentation, Delete"><figcaption><p>The Actions menu.</p></figcaption></figure>
2. Press **Disable**. The badge turns **DISABLED**, and **Actions** now offers **Enable** instead.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-55ada1de788c5a83a968bab12cd0169ac6adeec8%2Fintegrations-disable-2.png?alt=media" alt="Editing Braintree integration with the badges DISABLED, NOT TESTED, NOT CONFIRMED"><figcaption><p>The integration is off.</p></figcaption></figure>

   In the list it shows **Enabled: False**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-58733d9a49119942293d973da921471b8a1aae85%2Fintegrations-disable-3.png?alt=media" alt="Payments Integrations list with Braintree sandbox Enabled False"><figcaption><p>The list after <strong>Disable</strong>.</p></figcaption></figure>
3. To delete it, press **Actions → Delete**. The dialog **Delete Confirmation** asks *Are you sure you want to delete?* Press **Delete**.

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

## Result

After **Delete** Cloud shows *Integration deleted* and goes back to the list without the row. The keys and secrets are deleted with it, and its webhook URL answers **404** from then on — remove the URL at the provider too. A trigger that ticked only this integration stays saved but never runs.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-0caaf81357612c0aedf0b0940f79d2e1adf1a3c5%2Fintegrations-disable-5.png?alt=media" alt="Payments Integrations list with ten rows, Braintree sandbox is gone"><figcaption><p>The list after <strong>Delete</strong>.</p></figcaption></figure>

## Change or remove it later

* **Enable** — open the disabled integration and press **Actions → Enable**; calls are accepted again from then on.
* A deleted integration cannot be brought back: [connect the provider](/codemash/cloud/payments/integrations/providers.md) again and paste the new webhook URL at the provider.

## Do it from code

```ts
await norbix.hub.payments.disablePaymentsIntegration({ id }); // turn it off, keep it
await norbix.hub.payments.enablePaymentsIntegration({ id });  // on again
await norbix.hub.payments.deletePaymentsIntegration({ id });  // remove it for good
```

```sh
norbix hub payments integration disable --id int_3GWTIFeBFBenGeyJ6raMjX --yes
norbix hub payments integration enable --id int_3GWTIFeBFBenGeyJ6raMjX
```

The client setup is on the [Payments page](/codemash/cloud/payments.md#use-it-from-code). API: [Disable Payments Integration](/codemash/api-reference/payments/integrations/disable-payments-integration.md) · [Enable Payments Integration](/codemash/api-reference/payments/integrations/enable-payments-integration.md) · [Delete Payments Integration](/codemash/api-reference/payments/integrations/delete-payments-integration.md)
