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