MS-DOS and Windows control line del command


Computer Promise

command is used delete files from a computer.


Del is an internal control and is available in the post-obit Microsoft operating systems.

  • All versions of MS-DOS
  • Windows 95
  • Windows 98
  • Windows ME
  • Windows NT
  • Windows 2000
  • Windows XP
  • Windows Vista
  • Windows 7
  • Windows eight
  • Windows 10
  • Windows eleven

The delete command is a Recovery Console command and is bachelor in the following Microsoft operating systems.

  • Windows 2000
  • Windows XP

Del syntax

Windows 2000, Windows XP, and later syntax

Deletes one or more than files.

DEL [/P] [/F] [/South] [/Q] [/A[[:]attributes]] names ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
names Specifies a list of one or more files or directories. Wildcards may exist used to delete multiple files. If a directory is specified, all files in the directory are deleted.
/P Prompts for confirmation earlier deleting each file.
/F Forcefulness deleting of read-only files.
/S Delete specified files from all subdirectories.
/Q Quiet mode, do non ask if ok to delete on global wildcard.
/A Selects files to delete based on attributes.
attributes R = Read-only files
S = Arrangement files
H = Subconscious files
A = Files ready for archiving
– = Prefix pregnant not (e.g., -h for non hidden).

If Control Extensions are enabled, DEL and ERASE modify as follows:

  • The display semantics of the /South switch are reversed in that information technology shows you only the files that are deleted, not the ones it could not notice.
Popular:   What would happen if North Korea hacked the U.S. Department of Treasury?

Windows 2000 and Windows XP Recovery Console syntax

Deletes i file.

DEL [drive:][path]file proper name DELETE [drive:][path]file name
[drive:][path]file name Specifies the file to delete.

Delete only operates in the system directories of the current Windows installation, removable media, the root directory of whatsoever hard disk sectionalisation, or the local installation sources.

Del and delete do not back up replaceable parameters (wildcards).

Windows 95, 98, and ME syntax

Deletes ane or more files.

DEL [drive:][path]file name [/P] ERASE [drive:][path]file proper noun [/P]
[bulldoze:][path]file name Specifies the file(s) to delete. Specify multiple files using wildcards.
/P Prompts for confirmation before deleting each file.

Del examples


In Microsoft Windows, deleted items go to the Recycle Bin. Keep in mind that deleting files from MS-DOS or the Windows command line does not send them to the Recycle Bin.

del test.tmp

Deletes the test.tmp in the current directory, if the file exists.

del c:\windows\test.tmp

Delete the c:\windows\test.tmp in the Windows directory if it exists.

del c:\windows\temp\*.*

The * (asterisks) is a wild grapheme.
indicates you would like to delete all files in the c:\windows\temp directory.

del c:\windows\temp\?est.tmp

The ? (question marking) is a single wild character for 1 letter. The use of this control in the above instance would delete any file catastrophe with “est.tmp,” such as “pest.tmp” or “test.tmp.”