HOME > Linux > Ubuntu: Delete Directory - These Methods Exist

Ubuntu: Delete directory - these methods exist

Created folders and files are stored in different directories under Ubuntu. If you no longer need one of these directories, you have several options to delete that directory and the files it contains. Get an overview of which steps are necessary for deletion.

Ubuntu: Deleting a directory via the terminal

Directories and also files can be managed on an Ubuntu PC via the operating system's terminal. Therefore, if you want to delete a directory, it is first necessary that you open the terminal.
  1. To do this, simply use the key combination of "Ctrl" + "Alt" + "T" and then navigate to the appropriate directory that you want to delete.
  2. Then enter the command "rm -r directory" in the terminal, replacing the placeholder "directory" with the name of the directory to be deleted.
  3. Confirm the entry of the command by pressing the "Enter" key to delete the directory and all files contained therein.

How to delete a directory under Ubuntu in Explorer

As an alternative to the procedure described above, the deletion of a directory is also possible via the Explorer of Ubuntu. To use this method, first navigate in Explorer to the location of the directory you want to delete. Then right-click this directory to open the context menu and select the "Delete" option from it to remove the selected directory.

By Sutton

Booking Lime Scooters in the Uber App: How It Works :: Tolino doesn't charge - these are the options you have
USEFUL LINKS