CmdID

CmdID / Commands

erase

Deletes one or more files. Windows commands reference

On Windows, Cisco IOS

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

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 \work
erase *.*
erase c:\test
erase c:\test\*.*
erase *.bat
erase /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

from tldr-pages, CC BY 4.0

Erase configuration files or flash memory contents.

Erase the startup configuration

erase startup-config

Erase a filesystem

erase flash: