how to remove a file from command line in windows code example Example 1: delete a file in cmd windows del /f filename.type Example 2: delete command to delete a file in cmd del filename