ERASE) command, one can remove files.
@echo off del foo.ext
This command will delete
foo.ext from the current directory. One can also specify path and file, such as:
But it is always ideal to put quotes (
") around paths, see here for the reason.
There are a few flags available for
|Prompts user before deleting file(s)|
|Forcefully remove read-only file(s)|
|Remove file(s) in subdirectories|
|Prevents the user prompt|
|Filter: Only remove specific attributed file,|
|using the |