remove a directory and all its content on ubuntu code example Example: remove folder ubuntu $ rm -r directoryName