Remove a folder in linux command

Code examples

20
0

delete directory linux

rm -rf dir1
6
0

remove directory and contents linux

rm -r path
4
0

bash delete folder

# EXAMPLE
rm -r YourFolderName

# SYNTAX
# rm [option(s)-if-any] <folder(s)-to-remove-including-contents>

# +---------+------------------------------------------------------------------+
# | OPTIONS |  DESCRIPTION                                                     |
# +---------+------------------------------------------------------------------+
# |   -f    |  Force: ignore nonexistent files, never prompt                   |
# |   -i    |  Interactive: prompt before every removal                        |
# |   -I    |  Interactive: only prompt before removing more than three files  |
# |   -r    |  Recursive: remove directories and their contents recursively    |
# |   -v    |  Verbose:  explain what is being done                            |
# +---------+------------------------------------------------------------------+
3
0

remove directory from linux

rm -r filename

rm -rf filename

this command remove the directory and subdirectory forecefully
0
0

remove a folder in linux command

rm -r dirnameCopy

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................