I would like to delete everything inside a folder on a network drive, but not the folder itself. It's school drive, therefore I can't delete the folder and replace it. If I try to delete the folder, it will look like i deleted it, until I restart my pc. I need to have access to the folder afterwards, and a restart in between is just too inconvenient.
Things I've tried:
cd \\LOCATION
rd . /q /s
However this error occurs
CMD does not support UNC paths as current directories.
I hope I explained this well enough, if there was something you didn't understand then just write, then I'll try to clarify.