Delete Attachment Operation



Delete attachment example

// Define the delete attachment operation
const deleteAttachmentOp = new DeleteAttachmentOperation("employees/1-A", "photo.jpg");

// Execute the operation by passing it to operations.send
await documentStore.operations.send(deleteAttachmentOp);

Syntax

// Available overloads:
const deleteAttachmentOp = new DeleteAttachmentOperation(documentId, name);
const deleteAttachmentOp = new DeleteAttachmentOperation(documentId, name, changeVector);
Parameter Type Description
documentId string ID of document from which attachment will be removed
name string Name of attachment to delete
changeVector string ChangeVector of attachment,
used for concurrency checks (null to skip check)