cmd rmdir with files code example
Example 1: delete all files in a directory cmd
del /S C:\Path\to\directory\*
Example 2: remove directory command line
Rmdir "C:\myfolder"
del /S C:\Path\to\directory\*
Rmdir "C:\myfolder"