> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://interacdocs.nolimit.money/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://interacdocs.nolimit.money/_mcp/server.

# Delete Webhook

DELETE https://sandbox-payments.nolimit.money/interac/webhooks/{id}

Calling this enpoint and providing the pre-configured webhook `id` as a **PATH VARIABLE** will remove the webhook from your list and no more events will be sent to the deleted webhook.

Reference: https://interacdocs.nolimit.money/partner-interac-api/delete-webhook

## Servers

- `https://sandbox-payments.nolimit.money/interac` (Sandbox, default)
- `https://payments.nolimit.money/interac` (Production)

## Request

### Path parameters

- `id` (string, required)

### Headers

- `x-api-key` (string, optional)

## Response

### 200

OK

- `data` (WebhooksIdDeleteResponsesContentApplicationJsonSchemaData, required)
- `success` (integer, required)

## Types

### WebhooksIdDeleteResponsesContentApplicationJsonSchemaData

- `message` (string, required)

## Examples

**Response**

```json
{
  "data": {
    "message": "Webhook deleted successfully"
  },
  "success": 1
}
```

**SDK Code**

```python Delete Webhook_example
import requests

url = "https://sandbox-payments.nolimit.money/interac/webhooks/2"

headers = {"x-api-key": "{{kid}}@{{api-key}}"}

response = requests.delete(url, headers=headers)

print(response.json())
```

```javascript Delete Webhook_example
const url = 'https://sandbox-payments.nolimit.money/interac/webhooks/2';
const options = {method: 'DELETE', headers: {'x-api-key': '{{kid}}@{{api-key}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Delete Webhook_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://sandbox-payments.nolimit.money/interac/webhooks/2"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("x-api-key", "{{kid}}@{{api-key}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Delete Webhook_example
require 'uri'
require 'net/http'

url = URI("https://sandbox-payments.nolimit.money/interac/webhooks/2")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '{{kid}}@{{api-key}}'

response = http.request(request)
puts response.read_body
```

```java Delete Webhook_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://sandbox-payments.nolimit.money/interac/webhooks/2")
  .header("x-api-key", "{{kid}}@{{api-key}}")
  .asString();
```

```php Delete Webhook_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://sandbox-payments.nolimit.money/interac/webhooks/2', [
  'headers' => [
    'x-api-key' => '{{kid}}@{{api-key}}',
  ],
]);

echo $response->getBody();
```

```csharp Delete Webhook_example
using RestSharp;

var client = new RestClient("https://sandbox-payments.nolimit.money/interac/webhooks/2");
var request = new RestRequest(Method.DELETE);
request.AddHeader("x-api-key", "{{kid}}@{{api-key}}");
IRestResponse response = client.Execute(request);
```

```swift Delete Webhook_example
import Foundation

let headers = ["x-api-key": "{{kid}}@{{api-key}}"]

let request = NSMutableURLRequest(url: NSURL(string: "https://sandbox-payments.nolimit.money/interac/webhooks/2")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```