Remove unwanted files from working tree.


bzr clean-tree


Delete all ignored files.


Show files to delete instead of deleting them.

-v, --verbose

Display more information.


Delete files unknown to bzr (default).

-q, --quiet

Only display errors and warnings.

-d ARG, --directory=ARG

Branch to operate on, instead of working directory.


Show usage message and options.


Do not prompt before deleting.


Delete conflict files, merge and revert backups, and failed selftest dirs.

-h, --help

Show help message.


By default, only unknown files, not ignored files, are deleted. Versioned files are never deleted.

Another class is ‘detritus’, which includes files emitted by bzr during normal operations and selftests. (The value of these files decreases with time.)

If no options are specified, unknown files are deleted. Otherwise, option flags are respected, and may be combined.

To check what clean-tree will do, use –dry-run.

Previous topic


Next topic


This Page