# Windows 10: Unable to Delete a Folder

1. ## Unable to Delete a Folder

After clean installing 1803 I found that OneDrive was giving errors in Event Viewer so I decided to follow a guide which recommended uninstalling and reinstalling it. During install I decided to move the folder from c: to d:.

Unfortunately this has left all the files behind even though most of them were stored in the cloud. I have followed this tutorial and also tried command prompt in advanced boot but nothing allows me to delete it.

According to security I do have ownership.
My Computers

2. I don't think you can completely uninstall it as it's integrated in just about everything much less move it....with out having some serious complications.

I don't use it....at all. Simply because MS givith and takith away gigs of space (long story). So I just disable/turn it off after every upgrade or clean install I do.
My Computer

3. I do use OneDrive and having relocated it's folder, you'd think that you'd be able to delete the old one!
My Computers

4. swarfega said:
I do use OneDrive and having relocated it's folder, you'd think that you'd be able to delete the old one!
Give it a try with CCleaner (in tools), but you have 2 locations now... Run cmd lines so that it won't show up in Start nor in Explorer.
Explorer and Start menu. In the guess account, keys must be delete manually.
Code:
REG Delete "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
Code:
REG Delete "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
Other method:
Code:
taskkill /f /im OneDrive.exe
Code:
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
Revo Uninstaller Pro is probably the best option. Forced uninstall and browse the location in <<Full path to program file or folder>>. The only working area left would be changing its location. It is not possible to delete Onedrive nor any other MS apps.

They all have a cmd line to re-install them, they're just in a dormant state.
My Computer

5. Thank you. Will give it a try after work.
My Computers

6. I tried various things including your suggestion which didnt work.

1. open elevated command prompt
2. type rd /s /q \path\to\folder

and this removes them. You may have to enable the hidden administrator account which you can do following this guide.

Now to reinstall OneDrive!
My Computers

Unable to delete folder - vsmwrke in AntiVirus, Firewalls and System Security
There is a program running in the background and I'm sure it's a virus. It's probably left over and it's putting up one hell of a fight. I thought I had it all solved, I was wrong. Double clicking the folder it's hiding in gives me an error,...
I have a folder that I can not delete. When I try, I get an error message saying the file is no longer at this location and to verify it's location and try again. So how do I verify it's location? I was able to transfer the files from the...
Hi all, I have encountered a problem on my laptop there is a folder with this error and i dont know how to delete this? It is a folder on my dropbox, I have tried various methods such as unlocker software but still no luck please advise
I have folder which said it deleted, but remained....it had zero size....I trid adding some sub folders in the home it may trigger a proper deletion, these sub folders are now behaving in the same way....I loaded up a live Linux cd, it refused to...
Unable to delete a folder on an external USB HDD. Tried with take ownership. Tried Takedown, and some options on Owner of Files and Folders - Change in Windows 10 - Windows 10 Forums I booted from USB (WinPE/Paragon) and accessed command...
Our Sites