delete all files and folders in a directory cmd linux code example Example: delete all files in a directory cmd del /S C:\Path\to\directory\*