How to Remove Files from an Old Windows 11 Laptop Without Deleting OneDrive Files
Question details
The user wants to securely erase local files on an old Windows 11 laptop to prepare it for a new user without affecting the files backed up in their OneDrive account.

- Product
- Windows 11 / OneDrive
- Device & OS
- Windows 11
- Scenario
- Preparing an old Windows 11 laptop for a new user by wiping local data.
- Observed behavior
- Need to remove all local files and settings while ensuring synchronized cloud files in OneDrive remain fully intact.
Before proceeding with any system reset or file deletion, log into your OneDrive account via a web browser on another device to verify that all your important files are fully synced and accessible in the cloud.
Unlink OneDrive and Reset Windows 11
The safest way to clear a laptop without affecting cloud data is to disconnect your OneDrive account first, then perform a clean Windows reset.
By unlinking your computer from your OneDrive account, you severe the connection between your local hard drive and the cloud. This ensures that subsequent file deletions or system wipes on the local machine are not mirrored to your cloud storage.
Right-click the OneDrive cloud icon in the Windows taskbar system tray. Click on 'Settings' (the gear icon), navigate to the 'Account' tab, and click the 'Unlink this PC' link. Confirm the action when prompted.
Click the Start button, open the 'Settings' app, and navigate to 'System' > 'Recovery'.
Under the Recovery options, locate the 'Reset this PC' section and click the 'Reset PC' button.
When the reset options appear, select 'Remove everything' or 'Do not keep my files'. This will wipe all local data, applications, and settings, thoroughly preparing the computer for the next user while keeping your previously unlinked cloud files safe.

Setting Up Your New PC? Try the Lightweight WPS Office
If you are transitioning to a new device or simply need a fresh, high-performance productivity suite, WPS Office provides a comprehensive, free, and lightweight solution for creating documents, spreadsheets, and presentations with seamless cloud integration.
- 1. Download the Installer: Visit the official WPS website on your new PC and download the free installation package.
- 2. Install WPS Office: Run the setup file and follow the on-screen instructions for a quick, hassle-free installation.
- 3. Connect Cloud Storage: Launch WPS Office and navigate to the cloud settings to link your OneDrive account, letting you access your preserved files instantly.

Frequently Asked Questions
Will deleting local files after unlinking OneDrive affect my cloud storage?
No. Once you have successfully unlinked your PC from OneDrive, any local deletions or system resets performed on that specific machine will not sync to the cloud. Your cloud files remain completely safe.
How do I know if my OneDrive files are fully synced before unlinking?
Check the OneDrive icon in your Windows taskbar. If it shows a solid blue or white cloud without any syncing arrows or red error icons, your files are up to date. You can also verify this by logging into OneDrive via a web browser on another device.
Can I manually delete the files instead of doing a full Windows reset?
Yes, but you must strictly unlink your OneDrive account from the PC first. If you manually delete files from the local OneDrive folder while the account is still actively linked, those deletions will sync and the files will be removed from your cloud storage as well.




