deleting a dir in linux code example Example 1: delete a directory bash script rmdir dirname Example 2: remove all directrories in onde command hit rm -R -- */