Name
del or erase
Synopsis
The del
command is used to delete one or more
files from the command line without sending them
to the Recycle Bin. The del
options are:
del [/p] [/f] [/s] [/q] [/a:attributes
]filename
Option |
Description |
---|---|
|
Specifies the file(s) to delete (* and ? wildcards are supported) |
|
Prompts for confirmation before deleting each file |
|
Forces deleting of read-only files |
|
Deletes specified files in all subdirectories (when using wildcards) |
|
Quiet mode; do not prompt if filename is *.* |
|
Selects files to delete based on attributes (read-only, hidden, system, or archive) |
Examples
del myfile.txt del c:\files\myfile.txt del c:\files\myfile.* /p
Get Windows XP Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.