logo
search
OneDrive Error Codes

How to Fix OneDrive Error 0x8004def7: Account Exceeds 5 GB Limit

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

Question details

The user needs to resolve error 0x8004def7 in the OneDrive desktop app, which stops file synchronization by falsely reporting that the account has exceeded its 5 GB storage capacity.

Product
OneDrive
Device & OS
not provided
Scenario
Attempting to sync local computer files with Microsoft OneDrive cloud storage.
Observed behavior
The OneDrive desktop application displays error 0x8004def7 and halts file syncing, claiming the 5 GB storage limit is exceeded, even though web storage usage appears to be below that threshold.
Before you start

Make sure you have the login credentials for your primary Microsoft account and a stable internet connection before checking your cloud storage settings.

Solution 1Recommended

Verify Signed-In Account and Subscription Status

Use this solution to ensure you are logged into the correct Microsoft account, especially if you have a Microsoft 365 subscription that includes 1 TB of storage instead of the basic 5 GB.

Personal OneDrive accounts are limited to 5 GB of free storage. If you purchased Microsoft 365, you are entitled to 1 TB of storage. However, the desktop app will show error 0x8004def7 if you accidentally signed in with a free personal account rather than your premium subscription account.

1
Open OneDrive settings

Click the OneDrive cloud icon in your desktop system tray or menu bar, then click the gear icon and select Settings.

2
Check the active account

Navigate to the Account tab and review the email address currently signed in and the total storage quota displayed.

3
Unlink and reconnect

If the wrong account is active, click 'Unlink this PC'. After the setup screen appears, sign back in using the email address associated with your Microsoft 365 subscription.

Subscription Verified: Once signed into the correct Microsoft 365 account, your storage limit should immediately update to 1 TB, resolving the error and resuming file sync.
Free Microsoft Office alternative

Switch to WPS Office for a Seamless Cloud Experience

Tired of dealing with confusing Microsoft account limits and OneDrive sync errors? WPS Office offers a lightweight, highly compatible alternative with its own reliable integrated cloud storage, ensuring your files are safe and accessible without the hassle.

  1. 1. Download the installer: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install and create an account: Run the installer and create a free WPS account to instantly activate your built-in cloud storage.
  3. 3. Open your files: Open your existing Word, Excel, or PowerPoint documents seamlessly within WPS Office without losing any formatting.
Fully compatible with Microsoft Office formats including .docx, .xlsx, and .pptx.Includes 1 GB of free WPS Cloud storage with straightforward management.Lightweight design that runs smoothly on almost any device without slowing it down.All-in-one suite combining Writer, Presentation, Spreadsheet, and PDF tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why does OneDrive say I'm full when I have a Microsoft 365 subscription?

You might be signed into the OneDrive desktop app with a free personal account instead of the account associated with your Microsoft 365 subscription. Personal accounts only have a 5 GB limit, whereas Microsoft 365 includes 1 TB. Check your Account settings in the app to confirm your login.

Do files in the OneDrive recycle bin count towards my 5 GB storage limit?

Yes, items stored in your OneDrive recycle bin continue to take up space and count towards your total storage quota. Emptying the recycle bin via the web interface can often quickly resolve 'storage full' errors.

How do I unlink my OneDrive account from my PC to fix the login error?

Click the OneDrive cloud icon in your taskbar, click the gear icon to open Settings, select the 'Account' tab, and click 'Unlink this PC'. You can then sign back in with the correct account.

What happens if I ignore the 5 GB storage limit warning?

If your account remains over the storage limit for an extended period, your files will stop syncing across your devices. Eventually, your OneDrive account may be frozen, putting your files at risk of deletion by Microsoft.