How to Sign Out of OneDrive on Your Windows PC

Learn how to sign out of OneDrive on your PC, keep downloaded files, disconnect browser sessions, and choose when to pause or remove the app.

Contents

Don't Miss the Good Stuff

Get tech news that matters delivered to your inbox.

To sign out of OneDrive on your PC, unlink your account through the desktop app’s Account settings, which stops syncing and leaves downloaded files on your computer. Online-only files remain accessible through the OneDrive website. These desktop steps apply to the current OneDrive sync app on Windows 11 and Windows 10 22H2.

Your browser session is separate, so sign out on the OneDrive website too if you use both. Sign in only through Microsoft’s own app or website, and never share a code, password, or remote access with someone who contacts you.

The short version

  • Desktop sign-out: Select Unlink this PC in OneDrive account settings to disconnect syncing.
  • Files stay: Downloaded files remain on your PC, while online-only files remain accessible through the website.
  • Browser sign-out: Select your profile photo on the OneDrive website, then select Sign out.
  • Temporary stops: Pausing or quitting OneDrive leaves your account connected.

OptionWhat it doesWhen it applies
Unlink the desktop appDisconnects the account from PC syncingDesktop sync app
Sign out of the websiteEnds the website sessionPC browser
Sign out everywhereSigns out across browsers and apps except Xbox consolesPersonal Microsoft account
Sign out of the viewing appDisconnects that separate appWindows 10 viewing app with its account menu
Uninstall through Windows SettingsRemoves the installed sync appPCs exposing an uninstall option
Uninstall through StartOpens Windows app removalOneDrive entry with an uninstall action
Uninstall through Control PanelRemoves the registered appOneDrive listed among installed programs
Quit OneDriveStops the app while keeping the account connectedDesktop sync app
Pause syncingStops syncing temporarilyDesktop sync app
Disable startup through Windows SettingsChanges future automatic startupOneDrive listed among startup apps
Disable startup through Task ManagerChanges future automatic startupWindows 11 with OneDrive listed
Hide OneDrive after unlinkingChanges folder visibilityWindows 10 or Windows 11
Disable OneDrive file storage by policyRestricts OneDrive on the deviceAdministrators on supported Windows editions
Block personal syncing by policyStops personal-account syncingManaged Windows PCs
Restrict organization syncing by policyControls which organizations can syncManaged work or school accounts
Administrator session sign-outInvalidates Microsoft 365 sessionsAuthorized work or school administrator
Download OneDrive againProvides the sync app for reinstallationSupported desktop platforms after removal

Unlinking disconnects the account from PC syncing, but downloaded files stay on the computer and online-only files remain accessible through the website. Select the OneDrive cloud icon in the taskbar notification area. If it is hidden, select Show hidden icons; if OneDrive is not running, open Start, search for OneDrive, and open it.

Select Start to open the Windows Start menu.
Click to expand
Select Start to open the Windows Start menu.

On Windows 11 and Windows 10 22H2, select the gear labeled Help & Settings, then open Settings > Account. Select Unlink this PC, then select Unlink account. If multiple accounts are connected, open the cloud icon for the account you want to disconnect and repeat these steps for each account you want to unlink.

Downloaded confidential files remain locally available after unlinking, so this does not clear the computer’s contents. You can still use OneDrive to access your files through the website. On a managed work or school PC, organizational policies may restrict settings; ask your administrator for help if you cannot change them.

Sign out of OneDrive in your browser

Signing out ends your OneDrive website session. On the OneDrive website, select your profile photo, then select Sign out. This applies to personal and work or school accounts accessed through a PC browser.

The desktop sync app stays connected until you unlink it separately. Likewise, unlinking the desktop app leaves your browser session separate, so complete both procedures when you want to disconnect both places.

Sign out of the separate viewing app

These steps apply only to the separate OneDrive viewing app for Windows 10 devices, version 19.X and later, when it is installed and exposes its account menu. Signing out disconnects the selected account from that viewing app.

Open the app and select My Accounts in the upper-right corner. Find the relevant account and select Sign out. If you are using the desktop sync client through the taskbar cloud icon, follow the unlinking procedure instead.

Sign out from another device

For a personal Microsoft account, signing out everywhere ends sessions across browsers and apps, except Xbox consoles, rather than disconnecting just one PC. Open your Microsoft account security dashboard from another device and access Additional security options. Find Sign out everywhere, then select Sign out.

Microsoft says this account-wide sign-out can take up to 24 hours, as checked in October 2026. Use desktop unlinking when you have access to the PC and want to disconnect only its OneDrive syncing.

For a work or school account, an administrator with the necessary permissions can invalidate Microsoft 365 sessions beyond OneDrive. In the Microsoft 365 admin center, select Users > Active users, then select the user. Open Account and select Sign out of all sessions.

Microsoft also identifies the PowerShell cmdlet Revoke-MgUserSignInSession as an administrative alternative. Session invalidation does not remove local files or unlink the desktop app, so ask your organization’s administrator for help with a work or school account you cannot manage yourself.

Pause or quit when you only need a break

Pausing keeps your account connected while temporarily stopping syncing. On Windows 11 or Windows 10 22H2, right-click the OneDrive taskbar icon and select Pause syncing. Choose 2 hours, 8 hours, or 24 hours.

To stop the running app, right-click the OneDrive taskbar icon and select Pause syncing > Quit OneDrive. Your account remains connected, and reopening OneDrive allows syncing to resume. If you want to turn off OneDrive without losing files, choose between these temporary stops and unlinking based on whether the account should remain connected.

Stop OneDrive from opening automatically

On Windows 11 and Windows 10 22H2, open Start > Settings > Apps > Startup. If Microsoft OneDrive is listed, turn its toggle to Off. Quit the running OneDrive app separately if you also want it to stop now.

On Windows 11, you can instead right-click Start and select Task Manager. Select Startup apps, select Microsoft OneDrive if listed, then select Disable. Older Task Manager layouts use a Startup tab.

Both controls affect future startup and leave the account linked. An organization can enforce automatic startup, so ask your administrator for help if the setting is controlled on your work or school PC.

Hide OneDrive after unlinking

Hiding OneDrive changes its visibility without signing out the account. First unlink the account using the desktop procedure above, which stops syncing while leaving downloaded files on the PC.

On Windows 10 or Windows 11, open File Explorer, right-click OneDrive, and select Properties > General. Under Attributes, check Hidden. Quit OneDrive to remove its running notification-area icon, keeping in mind that folder visibility also depends on File Explorer’s hidden-item settings.

Open File Explorer on Windows.
Click to expand
Open File Explorer on Windows.

Remove or reinstall the OneDrive app

Uninstalling removes the installed OneDrive sync app and stops its use on the PC. It does not perform a remote account sign-out, and you can stop after unlinking if disconnecting the account is all you need. These removal routes apply only where Windows exposes the relevant uninstall option.

On Windows 11, open Start > Settings > Apps > Installed apps. Find Microsoft OneDrive, open More (the three dots), and select Uninstall.

On Windows 10 22H2, open Add or remove programs and find Microsoft OneDrive under Apps & features. Select Uninstall to remove the app.

If your Windows installation displays the OneDrive Start-menu entry and its uninstall action, select Start > All apps. Find Microsoft OneDrive, right-click it, and select Uninstall. If Windows opens the installed-programs interface, select Microsoft OneDrive there and select Uninstall.

On Windows 11 or Windows 10 22H2, another entry point is Control Panel, which you can find through taskbar search. Open it and select Programs > Programs and Features. If Microsoft OneDrive is listed, right-click it and select Uninstall; on a managed PC, administrator assistance may be required.

In Programs and Features, select the program, then select Uninstall.
Click to expand
In Programs and Features, select the program, then select Uninstall.

If you later need the sync app again on a supported desktop platform, open Microsoft’s OneDrive download page and select Download OneDrive. Downloading or reinstalling is not required to sign out.

Restrict syncing on managed PCs

If you administer Windows PCs, device and account policies let you restrict OneDrive syncing. These controls change syncing permissions rather than ending website sessions. Use them only within the Windows editions and account types supported by each policy.

On supported Windows Pro, Enterprise, Education, and IoT Enterprise editions, including Windows 11, open Group Policy and follow Computer Configuration > Administrative Templates > Windows Components > OneDrive. Open Prevent the usage of OneDrive for file storage and select Enabled. This restricts OneDrive file storage and syncing on the device.

Before changing the registry, back it up because modifying it can have unintended consequences. The registry mapping is HKLM\Software\Policies\Microsoft\Windows\OneDrive, with the value DisableFileSyncNGSC. For MDM, set ./Device/Vendor/MSFT/Policy/Config/System/DisableOneDriveFileSync to integer 1. Microsoft lists the CSP policy for Windows 10 version 1703 and later, but the current OneDrive client requires Windows 10 22H2 or Windows 11.

To stop personal-account syncing on managed Windows PCs running the current sync app, use OneDrive administrative templates or Intune to enable Prevent users from syncing personal OneDrive accounts. Back up the registry before changing it. The equivalent registry value is HKCU\SOFTWARE\Policies\Microsoft\OneDrive\DisablePersonalSync, set to DWORD 1. Existing personal-account syncing stops and local files remain, while the OneDrive website session is unaffected.

For work or school accounts, use Group Policy or Intune to enable Block syncing OneDrive accounts for specific organizations. Under Options, select Show and enter the organization tenant IDs. Alternatively, configure Allow syncing OneDrive accounts for only specific organizations with the permitted tenant IDs. Already-connected accounts outside the permitted scope stop syncing, but these controls do not sign them out of the website.

Frequently Asked Questions

Does signing out of Microsoft Office also sign out of OneDrive?

Signing out of Office does not sign out the OneDrive sync client. You need to disconnect the account in the OneDrive desktop app separately.

Should you reset OneDrive to stay signed out?

Resetting OneDrive is a troubleshooting operation followed by a full sync. It is not a reliable way to remain signed out.

Do folder backup settings or Personal Vault locking sign you out?

Folder-backup toggles, Choose folders, Windows Backup settings, and Personal Vault locking are not account sign-out mechanisms. Changing those controls does not replace unlinking the desktop account.

Does signing out of the OneDrive mobile app disconnect your PC?

Signing out of the mobile app affects that mobile app. Your PC’s desktop sync connection needs to be managed separately.

Share