Skip to content

Delete task attachment

DELETE
/v1/tasks/{taskId}/attachments/{attachmentId}
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.

taskId
required
string

Example

tsk_abc123def456

Unique task identifier

attachmentId
required
string

Example

att_abc123def456

Unique attachment identifier

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"
}