how to delete a folder and its contents in cmd code example Example: remove folder with content cmd rmdir folder/path /S /Q