Share via


ERASE, DEL

This command deletes one or more files.

ERASE [/P] [/F] [/S] [/Q] [[path]file_name
DEL [/P] [/F] [/S] [/Q]  [[path]file_name

Parameters

  • /P
    Prompts for confirmation before deleting each file.
  • /F
    Forces the command processor to delete read-only files.
  • /S
    Deletes specified files from all subdirectories.
  • /Q
    Specifies a quiet mode. The command processor does not ask before deleting each file if you specify a global wildcard.
  • path
    Specifies the path of the directory that contains the file that you want to delete.
  • file_name
    Specifies the name of the file that you want to delete.

Remarks

You can specify multiple files by using wildcards.

See Also

Command Processor Commands | Command Processor Shell

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.