# Remove a Tenant Webhook

Stop telling your server about bank ramp and card onramp events in one environment.

## Overview

- `204` with no body. The webhook and its secret are deleted, and deliveries still waiting are dropped. To stop only for a while, save it with `"status": "disabled"` instead ([Save a Webhook](https://docs.aureahub.com/docs/tenant-webhook-save.md)).
- `404` with `details.code` `NOAH_WEBHOOK_NOT_FOUND` when the environment has no webhook.
- For an Aurea administrator, or the tenant's own administrator. Written to the tenant's activity log with the address.

## Endpoint

### `DELETE /v1/admin/tenants/{id}/webhooks/{environment}`

Authentication: bearer token required.

Deletes the environment's webhook and its secret.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Tenant UUID |
| `environment` | string | yes | `production` or `sandbox` |

**Responses**

`204` No Content

`404` No webhook

```json
{
  "statusCode": 404,
  "error": "NotFoundError",
  "message": "This tenant has no webhook in sandbox",
  "details": { "code": "NOAH_WEBHOOK_NOT_FOUND" }
}
```

---

Web version: https://docs.aureahub.com/#tenant-webhook-remove
