O3 Framework / deleteAttachmentPermanently
deleteAttachmentPermanently(
attachmentUuid,abortController):Promise<FetchResponse<any>>
Defined in: packages/framework/esm-emr-api/src/attachments.ts:107
Permanently deletes an attachment from the OpenMRS server. This action cannot be undone.
string
The UUID of the attachment to delete.
AbortController
An AbortController to allow cancellation of the request.
Promise<FetchResponse<any>>
A Promise that resolves with the FetchResponse confirming deletion.
import { deleteAttachmentPermanently } from '@openmrs/esm-framework';
const abortController = new AbortController();
await deleteAttachmentPermanently('attachment-uuid', abortController);