Clean up artefacts belonging to parts. If no parts are specified, remove the ROCK packing environment.


rockcraft clean [options] <part-name>



Optional list of parts to process.



Shell into the environment if the build fails.


Build in the current host.


Shell into the environment in lieu of the step to run.


Shell into the environment after the step has run.

Global options

-h or --help

Show this help message and exit.

-q or --quiet

Only show warnings and errors, not progress.

-v or --verbose

Show debug information and be more verbose.


Set the verbosity level to ‘quiet’, ‘brief’, ‘verbose’, ‘debug’ or ‘trace’.

-V or --version

Show the application version and exit.