emu-prune(1)

NAME
emu-prune - Remove snapshots from sinks

SYNOPSIS
emu prune [<options>] <sink>:<snapshot> ...

DESCRIPTION
Deletes one or more snapshots from their sinks, permanently erasing any files contained within them. If a snapshot is the head of the sink, then the head is reallocated to the snapshot's parent, if there is one.

The format for specifying snapshots is in the form <sink>:<snapshot>. The <snapshot> value is the 40 digit snapshot ID, and can be obtained from 'emu log'.

OPTIONS

-S <dir> --source-dir <dir>
    Specify the directory to use as the source. Defaults to `.'.

-v --verbose
    Increase verbosity.

--version
    Show version information and quit.

-h --help
    Show this help and quit.

EXAMPLES

Delete the head of sink `origin':
    emu prune origin:HEAD

Delete a specific snapshot by ID:
    emu prune origin:53b1e624ccedee864cbba76563522be43360ded5

Delete the three most recent snapshots:
    emu prune origin:HEAD origin:HEAD~ origin:HEAD~2

EMU
Part of the emu (1) suite

AUTHOR
Chris Cummins <chrisc.101@gmail.com>

SEE ALSO
emu (1)