작성자: 박준규

2023.01.27(금)

Reference: https://answers.ros.org/question/364116/ros2-how-to-uninstallremove-a-package/

Sometimes you may want to remove a package (wrong name, etc.).

If so:

  1. Go to your workspace root directory:

    cd ~/ros2_workspace
    
  2. Remove the package directory:

    rm -rf src/<package_name>
    
  3. Remove the build, install, and log directories:

    rm -rf build/ install/ log/
    
  4. Rebuild the environment:

    colcon build