delete ubuntu dir code example Example 1: ubuntu remove directory rm -R folder-name Example 2: ubuntu delete folder sudo -r -f folder-name //if need permi