I know, there are very similar questions to this, but I couldn't find the correct answer to this one.
My folder structure looks like this:
\Path\To\BaseDir
\FolderToDelete1
\File1
\File2
\FolderToDelete2
\File3
\File4
\File5
What I need is a one line of command (that's a requirement I must fulfill) what would:
- delete every file and folder (recursively) from my BaseDir
- delete every folder (recursively) from my BaseDir
- delete only every file from my BaseDir (and not folders)
I can't use Power Shell. I can't run batch files. I need a single line of command.
In Linux shell the command I search for option 1 would look like this:
rm -Rf \Path\To\BaseDir\*
What is the Windows CLI equivalent of the above command?
My actual path contains spaces, like: "D:/Path to Dir/BaseDir"