Sub topic 9
Keeping files offline or removing local copies
This chapter assumes you have iCloud Drive turned on, can find files in Finder, and know that Optimize Mac Storage can replace files with cloud-only placeholders. You will learn to override that behavior for individual files and to free space on purpose.
The two controls
Finder offers two commands in the right-click menu of any iCloud Drive file or folder:
- Keep Downloaded stores a full copy on your Mac and tells macOS not to remove it, even when disk space runs low.
- Remove Download deletes the local copy but keeps the file in iCloud. The item stays visible in Finder with a cloud icon, and you can download it again whenever you open it.
Only one of the two appears at a time. Which one you see depends on the item's current state.
Keeping a file available offline
Use Keep Downloaded for files you need without a network connection. Examples are a presentation for a flight, reference PDFs, or a project folder you open every day.
- Open Finder and choose iCloud Drive in the sidebar.
- Control-click the file or folder.
- Choose Keep Downloaded.
The Mac downloads the item if it is not already local. A folder applies the setting to the files inside it, including files you add later. Once the download finishes, the item is protected from automatic removal.
Removing a local copy
Use Remove Download when a large file is finished with, such as an old video project, but you still want it in iCloud.
- Control-click the item in iCloud Drive.
- Choose Remove Download.
The file's icon changes to a cloud with a down arrow, and the space on your Mac comes back. A file must be fully uploaded before you can remove its local copy. If iCloud has not received it yet, the command is unavailable or the copy stays, because removing it would lose your only copy.
How this interacts with Optimize Mac Storage
Optimize Mac Storage lets macOS decide which files to evict when space is low. Keep Downloaded is your veto over that decision. Remove Download is your manual override in the other direction.
| State | Who decides | Typical use |
|---|---|---|
| Downloaded, not pinned | macOS may evict it later | Everyday files |
| Keep Downloaded | You; macOS leaves it alone | Offline work |
| Removed (cloud icon) | You or macOS | Archives, large old files |
Common mistakes
- Pinning too much. If you choose Keep Downloaded on your whole iCloud Drive, you lose the space savings of Optimize Mac Storage. Pin only what you need offline.
- Expecting space to return at once. If you remove many large downloads, Finder may take a moment to update the available space shown in the status bar.
- Confusing removal with deletion. A cloud icon means the file still exists in iCloud. A missing item means it was deleted.
- Opening a cloud-only file offline. Without a connection, a cloud-only file cannot be opened. Check for the cloud icon before you travel.
Checking from Terminal
Cloud-only files appear on disk as small placeholder files whose names begin with a dot and end in .icloud. Listing a folder shows them:
ls -la "$HOME/Library/Mobile Documents/com~apple~CloudDocs"A file named .report.pdf.icloud means the real report.pdf is not on your Mac. Use Finder to download it rather than editing the placeholder.
Exercise
You are about to fly for six hours and need a folder of contracts from iCloud Drive, which is optimized for storage. After you return, you want to free the space again without losing the files. Which commands do you use, and when?
Show answer
Before the flight, Control-click the folder in Finder and choose Keep Downloaded, and wait until the download finishes. After you return, Control-click the folder and choose Remove Download. This frees the local space, and the files stay in iCloud and on your other devices.