how to delete all the content of file using cmd code example Example: delete all files in a directory cmd del /S C:\Path\to\directory\*