OneDrive error 0x8004def7: storage full or account frozen (how to fix it)

Quick answer: OneDrive error 0x8004def7 stops you signing in to the OneDrive app. Microsoft gives three causes: your storage is over its limit, your account is suspended (frozen), or the app’s settings are broken. The first two are far more common, so before resetting anything, sign in at onedrive.com and check for an Account frozen message and how much storage you’re using. Free up space or add storage, wait up to 24 hours, then sign in to the app again.

What 0x8004def7 means

Microsoft’s troubleshooting article for 0x8004def7 applies to both personal OneDrive and OneDrive for work or school. It lists three possible causes:

  • Your OneDrive storage is over its limit.
  • Your account was suspended.
  • The OneDrive sync app has configuration problems.

The same article explains that anyone with a Skype, Xbox, Hotmail or Outlook.com account also has a OneDrive account, and that it gets frozen if you exceed your storage limit or haven’t used OneDrive in 12 months, even if you use other Microsoft services. That’s why the error often appears out of the blue on a PC where nothing changed.

Step 1: Find out which cause you have

  1. In a browser, sign in to OneDrive on the web with the same Microsoft account the app uses. If you see an Account frozen message, the account is the problem, not the app.
  2. Open Microsoft’s Manage your OneDrive storage page and check the Microsoft storage section. It shows what’s using your space and your total quota.
  3. Think about your subscription. Microsoft’s subscription expiry page says that when Microsoft 365 ends, your storage drops back to the free 5 GB. Anything above that becomes read-only, and after three months over the limit the account is frozen.
  4. If you got a frozen notice but don’t recognise the account, Microsoft notes you may have a second Microsoft account, for example one created on a phone to back up photos. Check that one too.
What you findLikely causeGo to
Account frozen message, or storage over the quotaOver quota or unused for a long timeStep 2
Microsoft 365 recently expired and you use more than 5 GBStorage dropped to the free amountStep 2
Web works, storage is fine, no frozen messageApp configurationStep 3
Can’t sign in on the web eitherAccount problem beyond storageMicrosoft account recovery or support

Step 2: Unfreeze the account

Microsoft’s frozen account page says you unfreeze it by getting back under your storage limit and signing in with the account that received the message. You have two ways to get under the limit:

  • Free up space. Download anything you want to keep, then delete it from OneDrive. Files you delete go to the OneDrive Recycle Bin for up to 30 days, so empty the Recycle Bin too if the quota doesn’t drop. While the account is over its limit, files are read-only, but you can still download or delete them.
  • Add storage. Renew Microsoft 365 or buy more storage. Microsoft says Personal, Family, Premium and Pro plans can be extended up to 10 TB.

Changes aren’t instant. Microsoft says it can take up to 24 hours for them to apply, and if the account is still frozen after 48 hours, contact Microsoft support. Once it’s unfrozen, open the OneDrive app and sign in again.

If you share a Microsoft 365 Family or Premium subscription, check the whole plan. Microsoft’s storage quota page says new Family and Premium subscriptions from October 8, 2026 share one 2 TB pool between members, and existing ones move to that model at renewal from May 2, 2027. With a shared pool, one person’s photos can push everyone over the limit.

Step 3: Unlink or reset the OneDrive app

If the account is fine on the web and under its limit, the app itself is the likely cause. Microsoft suggests these in order:

  1. Unlink and relink. Select the OneDrive cloud icon in the taskbar, then Settings (the gear) > Settings > Account and choose Unlink this PC. Sign in again when the setup window opens. Your files stay on the PC.
  2. Reset OneDrive. Press Win + R, paste the line below and press Enter. Microsoft notes a reset clears OneDrive’s settings and runs a full sync afterwards, which can take a while with lots of files.
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset

If OneDrive doesn’t restart by itself after a few minutes, run the same path without /reset. If you’d rather pause syncing while you sort out storage, see how to stop OneDrive from syncing. Resetting won’t fix a frozen account, so don’t spend time on this step until Step 1 rules that out.

What happens if you leave it

A frozen account affects more than OneDrive. According to Microsoft’s frozen account and storage pages:

  • You can’t upload, edit or sync files; existing files are read-only.
  • You can’t send or receive Outlook.com email, even if your mailbox itself isn’t full.
  • You can’t send or receive Teams messages with attachments.
  • After six months, Microsoft might delete your OneDrive and all its files, and they can’t be recovered.

So if you can’t fix it straight away, download anything important now. Separately, Microsoft closes the whole Microsoft account if you don’t sign in at least once in two years, unless you have an active subscription or similar.

Work or school accounts

Microsoft’s 0x8004def7 article covers OneDrive for work or school too, but the frozen account and quota pages above are for personal accounts. In an organization, your storage limit, licence and account status are set by your IT admin, so if the web version also shows a problem, contact IT rather than buying storage yourself. If the web works, the unlink and reset steps in Step 3 apply the same way.

For a different OneDrive sign-in code, see OneDrive error 0x8004de40. If you’re trying to clean up old Microsoft accounts on the PC, see can’t remove a Microsoft account from Windows 11.

Official sources

How we write our guides: read our editorial policy.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *