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