dataset COLLECTION_NAME prune KEY
dataset COLLECTION_NAME prune KEY ATTACHMENT_NAME
prune removes all or specific attachments to a JSON document. If only the key is supplied then all attachments are removed if an attachment name is supplied then only the specific attachment is removed.
In the following examples r1 is the KEY, stats.xlsx is the attached file. In the first example only stats.xlsx is removed in the second all attachments are removed. Our collection name is “data.ds”
dataset data.ds prune k1 stats.xlsx
dataset data.ds prune k1
Related topics: attach, detach, and attachments