ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

ROS2 workspace clean

asked 2019-08-06 12:31:57 -0500

mikepark93 gravatar image

What is the equivalent to catkin clean for ROS2 and colcon?

edit retag flag offensive close merge delete


There isn't one (yet) see ticket: You're best off scripting the removal of those directories for now.

stevemacenski gravatar image stevemacenski  ( 2019-08-06 16:00:48 -0500 )edit

Happy to say, there is one now:

ruffsl gravatar image ruffsl  ( 2022-12-15 09:41:37 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2019-08-06 14:03:13 -0500

DanRose gravatar image

rm -r build install

edit flag offensive delete link more

answered 2020-12-16 19:40:52 -0500

pfarkas gravatar image

In addition to build and install, I would also clean the log directory

rm -r build install log
edit flag offensive delete link more

answered 2022-12-15 09:47:06 -0500

ruffsl gravatar image

By installing the new colcon-clean extension, you can clean the build, install and log base paths like so:

sudo apt install python3-colcon-clean
colcon clean workspace

See the extension's repo readme for more documentation:

edit flag offensive delete link more


Nice! Thanks for posting.

clyde gravatar image clyde  ( 2022-12-19 08:10:15 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-08-06 12:31:57 -0500

Seen: 12,182 times

Last updated: Dec 15 '22