Delete Watchlist
curl --request DELETE \
--url https://api.example.com/kyc/watchlists/{watchlist_id}import requests
url = "https://api.example.com/kyc/watchlists/{watchlist_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.example.com/kyc/watchlists/{watchlist_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/kyc/watchlists/{watchlist_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/kyc/watchlists/{watchlist_id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.example.com/kyc/watchlists/{watchlist_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/kyc/watchlists/{watchlist_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyWatchlists
Delete Watchlist
Remove a watchlist and all associated data
DELETE
/
kyc
/
watchlists
/
{watchlist_id}
Delete Watchlist
curl --request DELETE \
--url https://api.example.com/kyc/watchlists/{watchlist_id}import requests
url = "https://api.example.com/kyc/watchlists/{watchlist_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.example.com/kyc/watchlists/{watchlist_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/kyc/watchlists/{watchlist_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/kyc/watchlists/{watchlist_id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.example.com/kyc/watchlists/{watchlist_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/kyc/watchlists/{watchlist_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyEndpoint
DELETE /kyc/watchlists/{watchlist_id}
Authentication
Requireswatchlist:delete permission.
Path Parameters
string
required
The unique identifier of the watchlist to delete
Request Example
curl -X DELETE https://stg.kyc.legaltalent.ai/kyc/watchlists/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN"
Response
{
"status": "success",
"message": "Watchlist deleted successfully"
}
Error Responses
404 Not Found
{
"status": "error",
"error": {
"type": "NotFoundError",
"message": "Watchlist not found",
"code": "WATCHLIST_NOT_FOUND"
}
}
Important Notes
This action is permanent and cannot be undone.Deleting a watchlist will:
- Remove the watchlist configuration
- Delete all subjects from the watchlist
- Cancel scheduled checks
- Remove historical screening data
- Stop all alerts and notifications
Alternative: Pause Instead of DeleteIf you want to temporarily stop monitoring without losing data, consider updating the status to
paused instead of deleting.Status Codes
| Code | Description |
|---|---|
| 200 | Success - Watchlist deleted |
| 401 | Unauthorized |
| 403 | Forbidden - Missing watchlist:delete permission |
| 404 | Not Found |
| 500 | Internal Server Error |
Best Practices
- Export data first: Use the Get Watchlist endpoint to retrieve and save watchlist data before deletion
- Pause instead: For temporary suspension, use
status: "paused"to preserve data - Verify ID: Double-check the
watchlist_idto avoid accidental deletion - Log deletions: Maintain audit logs of watchlist deletions for compliance