Delete task attachment
DELETE
/v1/tasks/{taskId}/attachments/{attachmentId}
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456/attachments/att_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/attachments/att_abc123def456 \ --header 'X-API-Key: <X-API-Key>'Delete task attachment 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
attachmentId
required
string
Example
att_abc123def456Unique attachment identifier
Responses
Section titled “Responses”Attachment deleted successfully
Media typeapplication/json
object
success
boolean
deletedAttachmentId
string
message
string
Example
{ "success": true, "deletedAttachmentId": "att_abc123def456", "message": "Attachment deleted successfully"}Unauthorized - Invalid authentication
Media typeapplication/json
object
message
string
Example
{ "message": "Unauthorized"}Task or attachment not found
Media typeapplication/json
object
message
string
Example
{ "message": "Task or attachment not found"}