How to delete folder and file using dos command in Windows

1.Delete file

del f:\123.txt

The file is 123.txt

2.Delete folder and files in it

rd /s /q f:\test

The folder is test, this command will delete all filesĀ  and folders in this folder .