how to remove folder and all file in it linux code example Example 1: delete a directory bash script rmdir dirname Example 2: remove all directrories in onde command hit rm -R -- */