TechBuzzPro

How to Reset OneDrive: Step-by-Step Guide

· 4 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Resetting OneDrive fixes sync errors, stuck files, and connection issues by reinstalling the application's local configuration. This process restores the default settings without deleting your actual files stored in the cloud. Before starting, ensure you have administrator access to your Windows PC and that all critical documents are saved locally if you suspect local corruption.

What You'll Need

  • A Windows 10 or Windows 11 PC with OneDrive installed
  • Administrator privileges on the computer
  • Your Microsoft account credentials
  • The Command Prompt (run as Administrator)

Step-by-Step

  1. Close OneDrive Completely: Right-click the OneDrive cloud icon in the system tray (bottom-right corner of your screen). Click the gear icon (Settings), then select Quit OneDrive. If the icon is missing, press Ctrl + Shift + Esc to open Task Manager, find Microsoft OneDrive in the list, right-click it, and choose End Task.
  2. Unlink Your PC: Open the OneDrive Settings again via the system tray. Go to the Account tab and click Unlink this PC. Confirm the action. This disconnects the local folder from your account but keeps your files safe in the cloud.
  3. Locate the OneDrive Folder: Open File Explorer and navigate to C:\Users\YourUsername\OneDrive. Replace YourUsername with your actual Windows user name. You will see folders like Desktop, Documents, and Pictures. Do not delete these yet; we need them for verification.
  4. Clear Local Cache Files: To ensure a clean reset, you must remove hidden cache files. Press Windows Key + R, type %localappdata%\Microsoft\OneDrive, and press Enter. Delete all files and folders inside this directory. Next, go to %programfiles%\OneDrive (for 64-bit) or %programfiles(x86)%\OneDrive (for 32-bit) and delete the contents there as well. Note: On newer Windows 11 versions, OneDrive may be integrated into the OS and located in C:\Windows\System32\OneDriveSetup.exe for reinstallation.
  5. Reinstall OneDrive: Open Command Prompt as Administrator. Type the following command exactly and press Enter:
    OneDriveSetup.exe
    If this fails, download the latest installer from the official Microsoft website and run it manually. The setup wizard will launch automatically.
  6. Sign In and Restore Folders: Follow the on-screen prompts to sign in with your Microsoft account. Once signed in, OneDrive will begin syncing. If your desktop, documents, or pictures were previously backed up, check the OneDrive folder in File Explorer. If they appear empty, log back into OneDrive on the web, verify your files are there, and then use the Backup feature in OneDrive Settings to re-enable protection for those folders.

Common Mistakes

A frequent error is deleting the local OneDrive folder before unlinking the account. Always unlink first to preserve the cloud link. Another mistake is skipping the cache deletion step, which can cause the same sync errors to persist after reinstalling. Users also often forget to restore the Backup settings for Desktop, Documents, and Pictures after a fresh install, leaving these folders unprotected.

Tips

Before resetting, take a screenshot of your current OneDrive Storage usage and active sync status for reference. If you have many large files, consider pausing sync during the initial setup to speed up the process. Use the Pick a folder option during setup if you want to change the location of your OneDrive folder to save space on your main drive.

Troubleshooting

If OneDrive fails to start after reinstalling, check the Event Viewer for error logs. Ensure your Windows date and time are correct, as incorrect timestamps break authentication. If you encounter "Sync Error" codes, try running the built-in repair tool: Go to Settings > Apps > Installed Apps, find OneDrive, click the three dots, select Advanced options, and click Repair. If the issue persists, uninstall OneDrive completely via Settings, restart your PC, and reinstall the latest version from Microsoft's official site.

Frequently Asked Questions

Will resetting OneDrive delete my files?

No. Resetting only clears local configuration and cache. Your files remain safely stored in your OneDrive cloud account. However, always verify files are online before deleting local copies.

Why does OneDrive keep showing sync errors?

Corrupted cache files, path length limits exceeding 255 characters, or file naming conflicts are common causes. A full reset clears corrupted caches and resets path configurations.

Can I reset OneDrive on Mac?

The steps differ slightly. On Mac, you must quit OneDrive, drag the app to Trash, delete the cache folder at ~/Library/Application Support/Microsoft/OneDrive, and reinstall from the Microsoft website.

How long does a OneDrive reset take?

The technical reset takes about 5-10 minutes. The time required depends on your internet speed and the number of files needed to re-sync from the cloud.

Is it safe to delete the OneDrive folder manually?

Only do this after unlinking the PC. Deleting the folder while linked will delete files from the cloud as well. Unlinking severs the connection, making local deletion safe.