Avatar of fireguy1125
fireguy1125
 asked on

Command to Delete All Files Permanently with No Prompt

What parameters with the del command can I use to delete a folder, all of it's contents, for all file types (read-only, those with missing permissions, etc), permanently, and without a prompt to select yes or no.

Is this sufficient?

Del "Z:\FolderName" /f
Microsoft DOSWindows Server 2008Windows OS

Avatar of undefined
Last Comment
Steve Knight

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ktaczala

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
aadih

/f is for force deleting of read-only files.

/q is for quiet mode, i.e., do not ask if ok to delete on global wildcard.
Steve Knight

if you dont have permissions to files it wont work still of course, will need to push permissions down and/or take ownership as usual.

steve
Your help has saved me hundreds of hours of internet surfing.
fblack61