Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 714 Bytes

prune.md

File metadata and controls

33 lines (23 loc) · 714 Bytes

prune

Syntax

    dataset prune COLLECTION_NAME KEY ATTACHMENT_NAME
    dataset prune COLLECTION_NAME KEY

Description

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.

Usage

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 prune data.ds k1 v0.0.1 stats.xlsx
    dataset prune data.ds k1 stats.xlsx
    dataset prune data.ds k1