Delete a task
DELETE
/v1/tasks/{taskId}
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456';const options = {method: 'DELETE', headers: {'X-API-Key': '<X-API-Key>'}};
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/tsk_abc123def456 \ --header 'X-API-Key: <X-API-Key>'Delete a task in Varman. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”taskId
required
string
Example
tsk_abc123def456Unique task identifier
Responses
Section titled “Responses”Task deleted successfully
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": true, "message": "Task deleted successfully"}Task not found