How to Completely Sign Out of OneDrive on Windows 11
Question details
The user needs to completely sign out and disconnect an old Microsoft account from OneDrive to prevent it from automatically signing in.

- Product
- Microsoft OneDrive
- Device & OS
- Windows 11
- Scenario
- Attempting to switch accounts or permanently remove a previously used Microsoft account from the OneDrive desktop application.
- Observed behavior
- OneDrive automatically authenticates and signs in to an old account without a password prompt, even after seemingly removing the account from Edge, Windows Settings, and the Credential Manager.
Before unlinking your account, ensure that any important local files currently syncing to OneDrive are fully uploaded to the cloud to prevent local data loss.
Unlink Your PC and Remove Cached Windows Accounts
Use this method to disconnect OneDrive and clear the system-level Windows 11 account tokens that are causing the automatic password-less sign-ins.
Windows 11 deeply integrates Microsoft accounts into the operating system. Simply logging out of the OneDrive app is often insufficient because Windows retains the account's authentication token globally for seamless sign-on.
Right-click the OneDrive cloud icon in your system tray on the taskbar. Click the gear icon to open 'Settings', navigate to the 'Account' tab, and click the 'Unlink this PC' link.
Open Windows Settings by pressing Win + I. Navigate to 'Accounts' > 'Email & accounts'. If you see the old Microsoft account listed, click on it and select 'Remove' to delete the system-wide token.
Still in the Windows Accounts settings, click on 'Access work or school'. If the problematic account is listed here, select it and click 'Disconnect'.
Search for 'Credential Manager' in the Windows Start menu and open the app. Click on 'Windows Credentials', locate any items starting with 'OneDrive Cached Credential' or 'MicrosoftAccount', expand them, and click 'Remove'.

Force Session Sign-out via Microsoft Account Security
If local troubleshooting fails to stop the auto-login, force a global sign-out from the server side by resetting your Microsoft account security credentials.
Switch to WPS Office for a Hassle-Free Document Experience
If managing Microsoft account credentials and OneDrive synchronization issues on Windows 11 is becoming frustrating, consider switching to WPS Office. It provides a lightweight, entirely free Office suite with secure, straightforward local and cloud document management that avoids complex system-level account integrations.

Frequently Asked Questions
Why does OneDrive sign in without asking for a password?
On Windows 11, Microsoft accounts are integrated at the system level. When you log into a Microsoft app, Windows caches your authentication token. OneDrive utilizes this global cached token to seamlessly sign you in without requiring a manual password prompt.
How do I permanently remove an old Microsoft account from Windows 11?
Go to Windows Settings > Accounts. Check both the 'Email & accounts' section and the 'Access work or school' section. Click on the old account in both menus and select 'Remove' or 'Disconnect' to delete the account from your PC.
Will unlinking my PC delete my existing OneDrive files?
No, unlinking your PC only severs the synchronization connection between your local computer and the cloud. Your files remain safely stored online in your Microsoft OneDrive account.




