added argument (c, clear) for pruning all snapshots