Skip to content
Windows 🟡 Intermediate

How to Use Cloud Rebuild to Sanitize Your Drives Before Reinstalling Windows 11

Richard
Written by
Richard
8 min read
A Windows 11 PC on a desk with its recovery screen open, illustrating how to securely erase drives before a cloud reinstall.
A Windows 11 PC on a desk with its recovery screen open, illustrating how to securely erase drives before a cloud reinstall.
Before you start
  • 10 steps
  • Needs administrator rights

Cloud rebuild in Windows 11 can securely erase your storage before it reinstalls Windows, using the Remove & sanitize files option. Cloud rebuild is the recovery feature that downloads a clean Windows image and drivers from Windows Update and reinstalls the operating system without USB media. The sanitize choice adds a hardware erase first. This means the drive itself wipes its stored data.

Microsoft documented this option in Windows Insider Experimental build 26340.9502, so it is a preview feature. Use it when you plan to recycle, return, or reassign a PC and the old data must not be recoverable. Once the erase runs, you cannot get the data back. Keep this in mind before you start.

⚡ Quick Answer

Open Settings System Recovery and start Cloud rebuild, then choose Remove & sanitize files to erase the drive’s stored data before Windows 11 reinstalls. The option appears only in some Windows Insider preview builds, such as Experimental build 26340.9502, so check your own screen first. Sanitizing cannot be undone, so back up your files and note your licence keys before you start.

Advertisement

What Remove & sanitize files does

Sanitizing tells the storage hardware itself to erase its data. It uses the erase capability built into the drive, rather than asking Windows to delete files one by one. A normal file deletion or reset removes the references to your data. Sanitizing erases the data on the drive.

The option runs when you start a Cloud rebuild in the Windows Recovery Environment, or WinRE (the recovery mode Windows loads outside your normal desktop). After the erase, Cloud rebuild reinstalls Windows 11. Microsoft describes the purpose as preparing a PC you are recycling, returning, or reassigning.

Advertisement

A standard Cloud rebuild, without the sanitize step, is also available. Microsoft describes it as formatting the system disk. That deletes all apps and data on the disk. The sanitize option goes further than that, and you cannot reverse it.

Where the option is available

The Remove & sanitize files option is in Windows Insider preview builds only so far. Microsoft documents the option in Experimental build 26340.9502. The name, wording, and location can change before the feature reaches everyone.

Cloud rebuild is available on more PCs than the sanitize option. Microsoft describes it as available through the optional preview update KB5127936 for Windows 11 25H2, under Settings System Recovery. That description also mentions removing files or securely erasing data before reinstalling. Which PCs show the sanitize choice depends on your build, so check for it on your own screen before you plan around it.

Microsoft’s notes do not list edition requirements, such as Home versus Pro, or specific drive models. If your PC does not show the option, Microsoft has not published a workaround. Use a standard Cloud rebuild instead.

Before you start

⚠️WarningSanitizing cannot be undone, so preparation matters more than usual. Work through this list first.
  • Back up everything you want to keep. Copy documents, photos, and exported browser data to another drive or cloud storage. Check that the copies open before you continue.
  • Check your other drives. Microsoft’s description confirms the system disk is formatted. Its notes do not say whether secondary drives are erased too. Treat any drive holding data you want as at risk, and copy that data elsewhere.
  • List the apps you need again. Cloud rebuild removes all apps. Write down what you reinstall and which licence keys or sign-ins you need.
  • Connect the PC to power and the internet. Cloud rebuild downloads the Windows image and drivers from Windows Update, so it needs a working connection.
  • Sign in with an administrator account, which has full control over the PC. Microsoft’s notes do not say whether the Settings route requires one, so this is a safe choice that avoids a blocked step.

If you set up restore points on a secondary drive, remember that sanitizing removes them with everything else. Restore points are no safety net here. The guide on whether to enable System Restore points on secondary drives explains what they cover.

How to securely erase data before reinstalling Windows 11 with Cloud rebuild

This section explains which option to pick and what to check first. Microsoft has confirmed the option name and that it appears in WinRE. It has not published every screen, so the notes below mark where wording may differ on your PC.

  1. Back up your files. Copy everything you want to keep to a drive that you are not about to erase, and open a few files from the copy to confirm they work.
  2. Connect the PC to power and the internet. A wired network connection is a sensible choice if you have one, because Windows downloads the image during the rebuild.
  3. Open Settings. If Windows will not start, skip to the next step. WinRE loads on its own on many PCs after repeated failed starts.
    Windows 11 Start menu search panel for opening OpenSSH Client settings
    Windows 11 Start menu search panel for opening OpenSSH Client settings
  4. Go to System Recovery. On Windows 11 25H2 with the optional preview update KB5127936, this page holds the Cloud rebuild entry. Microsoft’s description names it Rebuild PC.
  5. Select Rebuild PC. Microsoft describes this as the starting point for Cloud rebuild. If you do not see it, your build does not have Cloud rebuild yet. See the section on missing options below.
  6. Choose Remove & sanitize files. Microsoft documents this choice when you start a Cloud rebuild in WinRE. It is meant for a PC you are recycling, returning, or reassigning. Pick the ordinary option instead if you only want a clean reinstall.
  7. Read the warning, then confirm. This is the point of no return. Microsoft states the sanitize step is irreversible, so stop here if you are unsure about your backup.
  8. Wait while the PC erases, downloads, and reinstalls. Keep it plugged in and do not switch it off. The PC may restart more than once.
  9. Complete Windows setup. After the reinstall, Windows 11 starts its normal first-run setup.
  10. Review the restore summary. On Windows 11 version 24H2 and later, Microsoft says you can see a summary of what was restored during device setup or first sign-in.

Microsoft has not published the exact wording of confirmation screens, progress messages, or how long the sanitize step takes. Expect your screens to differ from these notes while the feature is in preview.

Advertisement

Choosing the right option

Pick based on where the PC is going next.

If the Remove & sanitize files option is missing

A missing option is the most likely problem, because the feature is in Insider preview builds only so far. Check these causes in order.

  • Your build does not include it. Microsoft documented the option in Experimental build 26340.9502. A regular release build may show only the ordinary rebuild choices. Open Settings System About to see your version and build number.
  • You are looking in the wrong place. Microsoft says the sanitize choice appears when you start Cloud rebuild in WinRE. If the Settings page shows only removal options, try starting the rebuild from WinRE.
  • Your PC does not offer Cloud rebuild at all. If Settings System Recovery has no Rebuild PC entry, the feature has not reached your PC. Microsoft says it is rolling out, so availability can vary between devices.

Microsoft does not say what happens when the storage hardware cannot perform the erase, such as whether the option greys out or shows an error. Do not assume a drive was sanitized unless the option was offered and the rebuild completed.

If the rebuild fails or stops

Cloud rebuild depends on downloading files from Windows Update, so a lost connection is the first thing to check. Reconnect the PC and start again.

A failure during the erase stage is a different matter. Microsoft has not documented error messages or recovery steps for the sanitize option. Treat the drive as possibly half-erased, keep it out of any handover, and do not rely on the data being gone until a rebuild completes and Windows setup starts normally.

How to undo it

⚠️WarningYou cannot undo it. Microsoft states the sanitize option is irreversible, and the rebuild formats the system disk so all apps and data are lost. The only way to get anything back is from a backup you made first. Windows 11 does not keep a recovery copy after the hardware erase.

After the reinstall

The PC comes back with a fresh copy of Windows 11 and drivers from Windows Update. Plan to reinstall every app and restore your files from your backup. On Windows 11 version 24H2 and later, Windows shows a summary of what it restored at setup or first sign-in. Check that summary to see what came back.

If you use the Copilot app, the guide on uninstalling and reinstalling Copilot on Windows 11 covers getting it back. If you are handing the PC to someone else, stop at the Windows setup screen and do not sign in with your own account.

What to do next

If the option is not on your PC yet, run a standard Cloud rebuild and check again after Windows updates, since Microsoft says the feature may change before release. For a rebuild without the erase step, follow the Cloud rebuild reinstall guide. When a sanitized PC reaches Windows setup, it is ready to pass to its next owner.

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked * How we handle comments