delete a file with terminal code example Example 1: how to remove a file in command line del filename Example 2: delete command to delete a file in cmd del filename