The del command displays the following prompt: Are you sure (Y/N)? To delete all of the files in the current directory, press Y and then press ENTER. To cancel the deletion, press N and then press ENTER.
How do I use YES in cmd?
Pipe the echo [y|n] to the commands in Windows PowerShell or CMD that ask “Yes/No” questions, to answer them automatically.
What is DELQ?
Delete By Attribute and Extension
del /q /a:r C:\Users\Tim\Documents\*.docx. To combine a few of the del switches, consider this command which will delete every read-only (/a:r) DOCX file from the user's Documents folder, but will do so in quiet mode (/q) so that you're not asked to confirm it.