How To Use Del Command in Windows Server 2008

This article describes the use of Del command in Windows Server 2008 operating system and commands related with it.
  • 3559

Introduction

Del command in operating system is used to delete one or more files. This Del command acts similar as erase command. Basic syntax for using Del command in operating system is given below.

Syntax

del [/p] [/f] [/s] [/q] [/a[ : ]<Attributes>] <Names>

Parameters For Del

Parameter Description
<Names> Defines a list of one or more files or directories.
/p Prompts for confirmation before deleting the specified file.
/f It forces deletion of read-only files.
/s Deletes specified files from the current directory and all sub directories.
/q Defines quiet mode.
/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

/? Shows help at the command prompt.

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.