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

# Delete User from Suppression List

DELETE https://api.fyno.io/v1/{WSID}/suppressions

Delete a suppression entry using its `_id`, or a combination of `distinct_id` or `destination` and `channel`.

How the parameters are resolved:

- If `_id` is provided, it takes precedence over all other parameters.
- Otherwise, provide either `distinct_id` or `destination`. If you provide both, `distinct_id` takes precedence and `destination` is ignored.
- Add `channel` to remove the suppression on that channel only, for example to unblock `sms` while keeping `whatsapp` suppressed for the same number.
- If `channel` is omitted, the suppression is removed across all channels for that `distinct_id` or `destination`.


Reference: https://fyno.io/docs/api-reference/suppression-list/delete-user-from-suppression-list

## Authentication

- `Authorization` header (bearer token, required) — Enter your API Key. If you don't have it already, you can create one from the API Keys page within your Fyno account

## Request

### Path parameters

- `WSID` (string, required) — Enter your workspace ID. You can obtain this value from the API Keys page within your Fyno account.

### Query parameters

- `_id` (string, optional) — Unique identifier of the suppression record to delete, for example `68763be4b8cee01156d9fa8a`. You can get this value from the Get Users endpoint.
- `distinct_id` (string, optional) — The distinct ID you use to identify the user, for example `XXXXXXXX`. Use this as an alternative to `destination`.
- `destination` (string, optional) — The suppressed email address, phone number, or push token, for example `abcde@fghi.com`, `+49XXXXXXXXX`, or `ExponentPushToken[XXXXX]`. Enter a phone number with the country code.
- `channel` (string, optional) — The channel to remove the suppression for, for example `sms`, `email`, `whatsapp`, or `push`. Use this along with `distinct_id` or `destination` to unblock a single channel without affecting the other channels for the same user. If omitted, the suppression is removed across all channels.

## Response

### 200

Suppression list updated.

- `status` (string, optional)
- `_message` (string, optional)

## Errors

### 400 Bad Request Error

The provided `_id` does not exist.

- `status` (string, optional)
- `_message` (string, optional)

### 401 Unauthorized Error

API Key or Workspace ID is invalid. User is unauthorised.

- `_message` (string, required)
- `status` (string, required)

## Examples

**Response**

```json
{
  "status": "ok",
  "_message": "1 record(s) has been deleted!"
}
```

**SDK Code**

```python
import requests

url = "https://api.fyno.io/v1/FYXXXXXXXX/suppressions"

headers = {"Authorization": "Bearer <apiKey>"}

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

print(response.json())
```

```javascript
const url = 'https://api.fyno.io/v1/FYXXXXXXXX/suppressions';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <apiKey>'}};

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

```go
package main

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

func main() {

	url := "https://api.fyno.io/v1/FYXXXXXXXX/suppressions"

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

	req.Header.Add("Authorization", "Bearer <apiKey>")

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

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

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

}
```

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

url = URI("https://api.fyno.io/v1/FYXXXXXXXX/suppressions")

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

request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <apiKey>'

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

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

HttpResponse<String> response = Unirest.delete("https://api.fyno.io/v1/FYXXXXXXXX/suppressions")
  .header("Authorization", "Bearer <apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://api.fyno.io/v1/FYXXXXXXXX/suppressions', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.fyno.io/v1/FYXXXXXXXX/suppressions");
var request = new RestRequest(Method.DELETE);
request.AddHeader("Authorization", "Bearer <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.fyno.io/v1/FYXXXXXXXX/suppressions")! 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()
```