I'm regularly getting prompted by onedrive to login and then it shows the prompt to log into my former schools office 365. of course I don't have an account there anymore and have removed the account from my laptop but one drive keeps bothering me.

How can I get rid of that prompt?

EDIT: I want to keep onedrive for my personal account

  • Did you remove the accont from the list accounts in Settings?
    – Ramhound
    Apr 26 at 17:24
  • You can uninstall One Drive in Programs and Settings
    – John
    Apr 26 at 17:39
  • 1
    Run Credential Manager and search for your account (or OneDrive) in Web Credentials or Windows Credentials and remove it.
    – harrymc
    Apr 26 at 18:32

2 Answers 2


Can you try uninstalling OneDrive? Otherwise you should see if the account still exists under Settings > Accounts > Access work or school. If not, you may be able to choose to log off from the account. Sometimes on the sign in page at the bottom there is a link to choose a different account. A last option is to look for all folders that contain data from OneDrive under AppData.

I think simply uninstalling OneDrive will be the simplest option, normally you can uninstall it from settings under Apps > Installed apps.

If you somehow can't uninstall OneDrive from settings, you can try using the command prompt to invoke the installer:

  1. Press Win+R on your keyboard.
  2. Type in taskkill /f /im OneDrive.exe and press enter.
  3. Type in %SystemRoot%\System32\OneDriveSetup.exe /uninstall and press enter.
  4. Type in %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall and of course press enter.
  • You can uninstall OneDrive from Windows 10, it's not like Microsoft Edge where Microsoft is forcing you to use it. Even on their website they tell you how to uninstall it. I can confirm this on 3 Windows devices I own, all running different editions and different versions, but I can uninstall OneDrive just fine. To make you happy I have added a method to force uninstall under any condition.
    – Foxyz
    Apr 26 at 18:41

I sugges you chek the related registry keys. Before you modify them, please remember to back up the registry for restoration in case problems occur.


Exit OneDrive by right clicking on the OneDrive icon > Click Exit or Quit OneDrive. Open the Registry Editor by searching regedit > OK.

Navigate to HKEY_CURRENT_USER > Software > Microsoft > OneDrive > Accounts > BusinessX.

"X" is the amount of Business accounts that you have logged into previously. Find the specific one by looking at the UserEmail value. After you find the correct one, delete the entire folder (BusinessX).


Navigate to HKEY_CLASSES_ROOT > CLSID. Inside the folder, search (CTRL + F) to find keyword: OneDrive.

Find next until you find the one (string subfoler like ) that has the "OneDrive – xxx" (The name which is related to the school account) as the Default value.

Then delete this string subfoler.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .