linux delete dir command code example
Example 1: delete directory linux
rm -rf dir1
Example 2: removing directories in linux
# find . -type d -name '*_cache' -exec rm -r {} +
rm -rf dir1
# find . -type d -name '*_cache' -exec rm -r {} +