OneDrive

OneDrive error 0x8004def7: storage limit or suspended account

OneDrive error 0x8004def7 stops sign-in when storage is over its limit, the account is suspended or frozen, or the sync app has configuration issues.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

Error 0x8004def7 appears when you try to sign in to the OneDrive sync app and the sign-in is refused. Microsoft's Learn article lists three possible causes: your OneDrive storage exceeded its storage limit, your account was suspended, or the OneDrive sync app has configuration issues. Microsoft's OneDrive error codes page gives the short version: you may see 0x8004def7 if you have exceeded your storage capacity and or your account has been suspended.

The first two causes are what Microsoft calls a frozen account. The Learn article explains that anyone with a Skype, Xbox, Hotmail or Outlook.com account also has a OneDrive account, and that the OneDrive account will be frozen if you haven't accessed it in 12 months or if you exceed your storage limit, even if you keep using other Microsoft services. Microsoft's frozen account article adds that this happens when an account or shared subscription stays over its storage allowance for three months, or when you don't sign in for a long time.

The third cause is local. If the account is fine and under its quota, the sync app's own settings on the PC may be the problem, and Microsoft's fixes for that are to unlink and relink OneDrive or to reset it.

Common causes

  • The OneDrive account is over its storage limit.
  • The account has been suspended or frozen, including after a long time without signing in.
  • Configuration issues in the OneDrive sync app on the PC.

How to fix it

1. Check how much OneDrive storage you use

Sign in to OneDrive on the web with the account that shows the error and open the storage settings to see what is taking up space. Microsoft's frozen account article reminds you to sign in with the account that received the frozen message; if you think the message is a mistake, you may have a second Microsoft account, such as one created for Samsung Gallery, that is the one over quota.

2. Get back under the storage quota

Delete files or folders you no longer need, or buy more storage. Microsoft says it can take up to 24 hours for the change to apply. While the account is over quota, existing files remain but are read-only, you can't upload, edit or sync new files, and you can't send or receive email in Outlook.com.

If storage is not the problem, unlink the PC and sign in again. Select the OneDrive icon in the notification area, select Help & Settings > Settings, open the Account tab, select Unlink this PC and then Unlink account. Then follow the Welcome to OneDrive wizard to set it up again. Microsoft says relinking can resolve existing sync app configuration issues, and that you won't lose files or data by unlinking OneDrive.

4. Reset OneDrive

If relinking does not help, reset the sync app. Press Windows key + R, paste this command and select OK:

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset

If Windows can't find it, use C:\Program Files\Microsoft OneDrive\onedrive.exe /reset or the Program Files (x86) path instead. Microsoft says resetting resets all OneDrive settings and OneDrive will run a full sync afterwards, without losing files. Start OneDrive again from the Start menu if it does not reopen. The OneDrive sync problems guide covers what to expect after a reset.

If nothing works

Microsoft says that if your account is still frozen 48 hours after getting back under the quota, contact support. For a work or school account, ask your IT department whether the account or its OneDrive was suspended. Act quickly: Microsoft warns that after six months over the storage limit it might delete the OneDrive and all files in it, and deleted files can't be recovered.

What we checked

Three Microsoft pages were read. The Learn article "Error 0x8004def7 when signing in to OneDrive" lists the storage, suspension and sync app configuration causes and the check storage, unlink and relink, and reset fixes, and notes the 12-month inactivity rule. The support page "What do the OneDrive error codes mean?" lists 0x8004def7 and gives the reset command paths. The frozen account article explains the quota timings and consequences. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does OneDrive error 0x8004def7 mean?

Microsoft lists three causes: your OneDrive storage exceeded its limit, your account was suspended, or the OneDrive sync app has configuration issues. The first two usually mean the account is frozen.

How long does it take for OneDrive to unfreeze after I free up space?

Microsoft says it can take up to 24 hours for changes to apply after you delete files or buy more storage. If the account is still frozen after 48 hours, contact support.

Will I lose my files if my OneDrive is frozen?

Existing files stay but become read-only while you are over the storage quota. Microsoft warns that after six months it might delete the OneDrive and all its files, and they cannot be recovered after that.

  • 0x8004de40 (OneDrive)

    OneDrive error 0x8004de40 means the sync app cannot connect to the cloud when you sign in, often because of TLS or cipher suite settings on the PC.

  • 0x8004de85 (OneDrive)

    OneDrive error 0x8004de85 (or 0x8004de8a) means a missing account or a personal and work account mismatch at sign-in. Check the account and license, then reset.

  • 0x8004deef (OneDrive)

    OneDrive error 0x8004deef blocks a work or school sign-in, usually because of a missing or expired license or cached credentials that no longer match.

  • 0x8004e4d0 (OneDrive)

    OneDrive error 0x8004e4d0 is usually a site user ID mismatch after an account was deleted and re-created with the same UPN. Admins fix it with a diagnostic.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.