How to skip "are you sure Y/N" when deleting files in batch files
Use del /F /Q
to force deletion of read-only files (/F
) and directories and not ask to confirm (/Q
) when deleting via wildcard.
Add /Q
for quiet mode and it should remove the prompt.