erase
Deletes one or more files. Windows commands reference
On Windows, Cisco IOS
Windows
Deletes one or more files. If you use erase to delete a file from your disk, you can't retrieve it. NOTE: This command is the same as the del command.
erase [/p] [/f] [/s] [/q] [/a[:]<attributes>] <names>del [/p] [/f] [/s] [/q] [/a[:]<attributes>] <names>erase \workerase *.*erase c:\testerase c:\test\*.*erase *.baterase /a:r *.*
<names>Specifies a list of one or more files or directories. Wildcards may be used to delete multiple files. If a directory is specified, all files within the directory will be deleted./pPrompts for confirmation before deleting the specified file./fForces deletion of read-only files./sDeletes specified files from the current directory and all subdirectories. Displays the names of the files as they are being deleted./qSpecifies quiet mode. You are not prompted for delete confirmation./a[:]<attributes>Deletes files based on the following file attributes:
- r Read-only files
- h Hidden files
- i Not content indexed files
- s System files
- a Files ready for archiving
- l Reparse points
- - Used as a prefix meaning 'not'/?Displays help at the command prompt.Cisco IOS
Erase configuration files or flash memory contents.
Erase the startup configuration
erase startup-configErase a filesystem
erase flash: