If i would like to initialize(remove) all the packages in any courses in order to restart, what command should i input?
Hi @IROS ,
To remove all user-created ROS [1 / 2] packages, you just need to delete the src
folder, re-create the src
folder again and re-compile the workspace.
ATTENTION / WARNING / CAUTION:
This action will remove / delete / wipe-clean ALL your packages inside the src
folder.
Please take a backup before you perform this task!
For ROS1:
cd ~/catkin_ws
rm -rf ./build ./devel ./src
mkdir src
catkin_make && source devel/setup.bash
For ROS2:
cd ~/ros2_ws
rm -rf ./build ./install ./log ./src
mkdir src
colcon build && source install/setup.bash
Regards,
Girish
1 Like