super-usuário (root) é a única conta capaz de usar rm -d flag
A partir da man page do rm
-d, --directory
unlink FILE, even if it is a non-empty directory (super-user
only; this works only if your system supports ‘unlink’ for
nonempty directories)
Eu não acho que o mingw suporte su root ou algo assim, usando rm -d indisponível.
Você já tentou rm -rf /full/path/to/dir ou (se vazio) rmdir /full/path/to/dir ?