A Microsoft file hosting and synchronization service.
Yes, it is possible to free up space on the laptop while keeping and working with files in OneDrive, but files must be handled correctly so they are only removed from the device, not from OneDrive.
Key points:
- Deleting a file inside the OneDrive folder deletes it from OneDrive
- If a file is stored in the OneDrive folder on the laptop (synced folder), deleting it there will also delete it from OneDrive cloud and send it to the OneDrive Recycle Bin.
- To truly keep a file only in the cloud but not on the device, do not delete it from the OneDrive folder; instead, use OneDrive’s “online-only”/Files On-Demand features.
- Keep files in OneDrive but not on the laptop (free up disk space)
- Put the files in the OneDrive folder so they are stored in the cloud.
- Turn on Files On-Demand so files can exist in OneDrive without taking local disk space. See:
- After sync completes, right‑click large files/folders in the OneDrive folder and choose Clear space (Windows/Mac). This keeps them in OneDrive but removes the local copies, freeing disk space.
- You will still see the files in File Explorer/Finder and can open them; they will download on demand when needed.
- Delete from computer but not from OneDrive
- If a file is already in OneDrive and should be kept only in the cloud:
- Ensure it is inside the OneDrive folder and fully synced.
- Use Files On-Demand and Clear space instead of deleting the file.
- The documentation describes this pattern:
- To keep a file on OneDrive but not on the computer, put it in the OneDrive folder, turn on Files On-Demand, and it “will take up zero hard drive space.”
- If a file is already in OneDrive and should be kept only in the cloud:
- Delete from OneDrive but not from computer (if needed)
- If a file should stay only on the laptop and not in OneDrive, move it out of the OneDrive folder to another local folder (e.g., C:\Users\…\Documents that is not under OneDrive). This removes it from OneDrive but keeps it locally.
- Check and manage OneDrive storage
- OneDrive storage can also become full. If that happens, either delete files or buy more storage:
- View and manage storage, empty the OneDrive Recycle Bin, and see largest files.
- If over quota, files become read‑only until space is freed or storage is upgraded.
- OneDrive storage can also become full. If that happens, either delete files or buy more storage:
- If the laptop disk itself is full while moving files into OneDrive
- Use the OS disk cleanup tools to free some temporary space, then move files into the OneDrive folder, let them sync, and then mark them as Clear space so they are online‑only.
Summary:
- Do not simply “delete the laptop work files” from the OneDrive folder; that deletes them from OneDrive.
- Instead, keep files in OneDrive and use Files On-Demand / Clear space to make them online‑only so they no longer consume local disk space but remain fully accessible in OneDrive.
References: