• JMap.Attachment.remove

    Deletes an attachment previously created on a data source.

    Parameters

    • dataSourceId: string

      the JMap data source id

    • attachmentId: string

      the attachment identifier to remove

    Returns Promise<string>

    Example

    JMap.Attachment
    .remove("f47ac10b-58cc-4372-a567-0e02b2c3d479", "d9428888-122b-11e1-b85c-61cd3cbb3210")
    .then(() => console.log("Attachment removed"))
    .catch(error => console.error("Failed to remove attachment", error))