I think the reason the "full path" works, is because Windows might not be viewing it as a folder when accessed with a fully qualified path.
The del
command is used for deleting files.
The rd
command (remove directory) is used for deleting folders.
If you want to delete a folder run:
rd C:\path\to\folder
If you want to delete a folder tree (including files and subfolders) run:
rd /s C:\path\to\folder
Also, running the command del C:\path\to\folder
in command prompt will actually not delete a folder, but rather delete the contents of that folder, so think of it more like an alias for del C:\path\to\folder\*
.