How can I reset the files in my Explorer to their defaults

I was stuck on 4.6 of ROS2 Basics in 5 Days (Python), and I tried a few things unsuccessfully to get unstuck but I suspect that I’ve created more problems. How can I reset the files in Explorer to their default starting state so I can start over?

Here is how you can perform a “reset” of a ros 2 workspace, backing up your files (if you want):

# The backup part, if you want it
mkdir -p ~/backup
cp -r ~/ros2_ws/src/. ~/backup

# The reset part
cd ros2_ws
rm -rf build/ install/ log/ src/*

Then start creating your packages in ~/ros2_ws/src again.

Okay thank you, will try that

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.