Delete multiple tasks
curl --request DELETE \
--url https://api.trycomp.ai/v1/tasks/bulk \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"taskIds": [
"tsk_abc123",
"tsk_def456"
]
}
'const options = {
method: 'DELETE',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({taskIds: ['tsk_abc123', 'tsk_def456']})
};
fetch('https://api.trycomp.ai/v1/tasks/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/tasks/bulk"
payload = { "taskIds": ["tsk_abc123", "tsk_def456"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"deletedCount": 2
}Tasks
Delete multiple tasks | Comp AI API
Delete multiple tasks in Comp AI. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
DELETE
/
v1
/
tasks
/
bulk
Delete multiple tasks
curl --request DELETE \
--url https://api.trycomp.ai/v1/tasks/bulk \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"taskIds": [
"tsk_abc123",
"tsk_def456"
]
}
'const options = {
method: 'DELETE',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({taskIds: ['tsk_abc123', 'tsk_def456']})
};
fetch('https://api.trycomp.ai/v1/tasks/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/tasks/bulk"
payload = { "taskIds": ["tsk_abc123", "tsk_def456"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"deletedCount": 2
}Was this page helpful?

