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