Delete multiple tasks
DELETE
/v1/tasks/bulk
const url = 'https://api.varman.io/v1/tasks/bulk';const options = { method: 'DELETE', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"taskIds":["tsk_abc123","tsk_def456"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.varman.io/v1/tasks/bulk \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "taskIds": [ "tsk_abc123", "tsk_def456" ] }'Delete multiple tasks in Varman. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
taskIds
required
Array<string>
Example
[ "tsk_abc123", "tsk_def456"]Responses
Section titled “Responses”Tasks deleted successfully
Media typeapplication/json
object
deletedCount
number
Example
{ "deletedCount": 2}Invalid request body