Delete a file from a context entry
DELETE
/v1/context/{id}/attachments/{attachmentId}
const url = 'https://api.varman.io/v1/context/ctx_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/context/ctx_abc123def456/attachments/att_abc123def456 \ --header 'X-API-Key: <X-API-Key>'Removes one supporting document from an org profile answer and deletes the stored file. Use list-context-attachments to find the attachment ID.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Example
ctx_abc123def456Context entry ID
attachmentId
required
string
Example
att_abc123def456Attachment ID
Responses
Section titled “Responses”Attachment deleted