how to delete files in command line code example Example 1: remove file via command line del filename -- removes filename Example 2: delete command to delete a file in cmd del filename