ubuntu 20.04 delete all files and directories code example Example 1: ubuntu remove directory rm -R folder-name Example 2: remove folder ubuntu $ rm -r directoryName