remove file and dir code example Example 1: remove all directrories in onde command hit rm -R -- */ Example 2: how to remove a file in command line del filename