In the following examples we are using a collection named characters.ds.
Adding high-capt-jack.txt as an attachment to “capt-jack”
echo "Hi Capt. Jack, Hello World!" > high-capt-jack.txt
dataset attach characters.ds capt-jack high-capt-jack.txt
List attachments for “capt-jack”
dataset attachments characters.ds capt-jack
Detach all attachments for “capt-jack” (this will untar in your current directory)
dataset detach characters.ds capt-jack
Prune high-capt-jack.txt from “capt-jack”
dataset prune characters.ds capt-jack high-capt-jack.txt
Prune all attachments from “capt-jack”
dataset prune capt-jack