Thanks guys, found a solution:
Thanks for the tips!
rd "\\?\C:\complete path to folder "The problem was that the directory had a trailing space, which is apparently not allowed in Windows.
Thanks for the tips!