rmdir with files ubuntu code example Example 1: ubuntu remove directory Click to copyrm -R folder-name Example 2: bash remove directory Click to copyrm -rf directory-name