deleteDocument(caseID, documentID, context)
Deletes a document from the case to which it is linked.
Returns
A Promise that deletes a document from the case to which it is linked.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case linked to the document that must be deleted. | ✅ |
documentID | string | The ID of the document that must be deleted. | ✅ |
context | string | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API deletes the document whose ID is 123445
from the case whose ID is C-1
.
PCore.getAttachmentUtils().deleteDocument('C-1', '123445', 'app/primary_1')
.then(() => {
// success
}).catch(err => {
// errors
});
Previous topic deleteAttachment(attachmentID, context) Next topic downloadAttachment(attachmentID, context)