OneDrive works by keeping a folder on your computer in step with your storage in Microsoft's cloud. A change made in one place, such as adding, editing or deleting a file, is applied to the other, so the same files show up on the OneDrive website, on your PC and in the mobile app.
This guide explains the moving parts: the sync folder, Files On-Demand, the status icons in File Explorer, what happens when you delete something and what you can still do offline. It follows Microsoft's support pages (checked November 2026). Menu names and icons can differ slightly between OneDrive and Windows versions, so go by what your own screen shows.
The basic idea: one folder, two copies
When you set up OneDrive on Windows and sign in, the app creates a OneDrive folder that appears in File Explorer. The OneDrive cloud icon also appears on the Windows taskbar. Microsoft describes the sync like this: when a file or folder is added, changed or deleted in your OneDrive folder, the same change is made on the OneDrive website, and the reverse applies as well.
Two-way sync is the part people often misread. OneDrive is not a one-time upload and it is not a read-only archive. It is a mirror that follows changes in both directions. Microsoft says that when you are connected, any changes you or others make sync automatically. If you share a folder with someone and they edit a document, the edit reaches your copy without any action from you.
Because deletions sync as well, a file you delete in the OneDrive folder is removed from the website too. That is covered in the section on deleting files below. If you have not set OneDrive up yet, see how to turn on OneDrive on Windows.
What Files On-Demand does
Syncing every file to every device would fill a small drive quickly. Files On-Demand solves that. Microsoft says it helps you access all your files in OneDrive without having to download all of them. You see every file and folder in File Explorer, but a file only takes up space on your PC when it is stored there.
Each file is in one of three states, and File Explorer shows the state with an icon:
| State | Icon in File Explorer | Uses disk space? | Opens offline? |
|---|---|---|---|
| Online-only | Blue cloud | No | No |
| Locally available | Green check | Yes | Yes |
| Always available | Green circle with a white check | Yes | Yes |
An online-only file is a placeholder. The name, size and date are visible, but the content lives in the cloud. When you open it, the file downloads to your device and becomes locally available. Per Microsoft, it then stays on your PC until you change it back. An always-available file is one you have told OneDrive to keep on the device, so it is there even when you have no connection.
How to change what is stored on your PC
You control the state from the right-click menu in File Explorer.
- Always keep on this device: OneDrive downloads the item and keeps it on the PC for offline use. Microsoft says new files you add to a folder marked this way also download automatically.
- Free up space: right-click a locally available file and choose this to return it to online-only. The file is not deleted from OneDrive.
Microsoft also notes that if Storage Sense is turned on in Windows, locally available files can switch back to online-only automatically after a period of time that you choose. So a file you opened last month may show a blue cloud again later without anyone deleting anything.
A separate setting lets you choose which OneDrive folders sync to your Windows PC at all, so you keep only the important files available offline. Folders you leave out stay in the cloud and can be reached from the website.
What works offline and what does not
Once a file has synced, you can open it without a connection. Microsoft's wording is that you can open a locally available file at any time, even without internet access. The limit is the online-only state: you cannot open those files when the device is not connected to the internet. If you are about to travel or work somewhere with no signal, right-click the folders you need and choose Always keep on this device first, and wait for the green icons.
Edits you make offline to a local file are applied to the cloud copy once the PC is online again, because the sync app resumes comparing the two sides. If the app is paused, nothing moves until it resumes. A common reason for that is a metered connection or battery saver mode, which we cover in why OneDrive keeps pausing.
What happens when you delete a file
Since sync is two-way, a deletion is a change like any other and it propagates. Delete a file from the OneDrive folder on your PC and it disappears from the website. The safety net is the OneDrive Recycle bin. Microsoft says personal accounts can restore files or folders deleted within the last 30 days. For work or school accounts the figure is 93 days, unless an administrator has changed the retention setting.
Where you look depends on where the file was deleted:
- OneDrive website: sign in at onedrive.com, open Recycle bin in the navigation pane, select the items and choose Restore.
- Your computer: check the Windows Recycle Bin for files deleted from the local OneDrive folder. Microsoft says files deleted from the cloud, including online-only files, do not appear there.
- Mobile: in the OneDrive app, open the Me icon, choose your account, tap Recycle Bin, select the files and tap Restore.
Items that have been permanently removed from the OneDrive Recycle bin cannot be restored. This is also why sync is not the same thing as a backup: if the change is a mistake, the mistake syncs too, and you only have the retention window to undo it.
Sync versus folder backup
Signing in gives you the OneDrive folder. Folder backup is an extra setting that moves your Desktop, Documents and Pictures folders into OneDrive so they sync like everything else. Both rely on the same mechanism described above, and both follow the same rules for deletion and offline access. The difference is only which folders participate. The steps are in the guide linked earlier.
Reading the state of a file at a glance
A quick way to check whether a document is safe to take offline is to look at its icon. A blue cloud means it is not on this PC. A green check means the content is on the PC now. A green circle with a white check means OneDrive will keep it there. If a file you need shows a blue cloud, open it once while you have a connection, or mark it as always available. If the taskbar icon shows that sync is paused, resume it before relying on the cloud copy being current.
If OneDrive does not behave as described
Work through these checks in order:
- Confirm you are signed in and that the cloud icon is on the taskbar. It may sit in the hidden icons area.
- Check whether the folder you are working in is selected to sync on this PC.
- Look at the file's icon. An online-only file will not open without a connection.
- Check whether sync is paused, and why, before assuming files are missing.
Frequently asked questions
- Does OneDrive keep a copy of my files on my computer?
- Only for files marked as locally available or always available. Online-only files show a blue cloud icon and take no local disk space. When you open one, it downloads and becomes locally available, and it stays on the PC until you free up the space again.
- What happens if I delete a file from my OneDrive folder?
- The deletion syncs, so the file is removed from the OneDrive website too. Microsoft says personal accounts can restore deleted items from the OneDrive Recycle bin for 30 days, and work or school accounts for 93 days unless an administrator changed the setting.
- Can I use OneDrive files without an internet connection?
- Yes, for files that are on your device. Microsoft says you can open a locally available file at any time without internet access, but you cannot open online-only files while the device is offline.
- Does choosing Free up space delete my file?
- No. Microsoft says changing a file to online-only does not delete it from your OneDrive. The copy in the cloud stays, and only the local copy is removed to free disk space.