how to delete all files in folder in windows10 code example Example: delete all files in a directory cmd del /S C:\Path\to\directory\*