How to Completely Erase/Delete a Catkin Workspace?

I created a catkin workspace (catkin_ws) as required for ROS (robot operating system). I want to delete/erase the entire workspace since I will be removing ROS. How do I do it?

1 Answer

catkin workspace is not linked to any other places, just delete your catkin_ws directory, also if you have added it ~/.bashrc you can remove it as follows:

  1. Open bashrc from any editor

    nano ~/.bashrc

  2. Remove entries similar to follows:

    source /opt/ros/melodic/setup.bash

    source ~/catkin_workspace/devel/setup.bash

I hope you already remove ROS packages, if it not clear let us know, I will update answer for that as well

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest