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