Caltech Library logo

detach

Syntax

    dataset detach COLLECTION_NAME KEY
    dataset detach COLLECTION_NAME KEY ATTACHMENT_NAME

Description

detach writes out (to local disc) the items that have been attached to a JSON record in the collection with the matching KEY

Usage

Write out all the attached files for k1 in collection named “publications.ds”

    dataset detach publications.ds k1

Write out only the stats.xlsx file attached to k1

    dataset detach publications.ds k1 stats.xlsx

Related topics: attach, attachments, and prune