windows 10 cmd command for remove all files in folder code example Example: delete all files in a directory cmd del /S C:\Path\to\directory\*