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