delete directory and files linux code example
Example 1: delete directory linux
rm -rf dir1
Example 2: shell remove file
rm <file_name>
Example 3: linux remove folder and all his content
rm -f /path/to/directory/{*,.*}
rm -rf dir1
rm <file_name>
rm -f /path/to/directory/{*,.*}