How to Prevent OneDrive Online-Only Files from Downloading During Searches
Question details
The user wants to prevent OneDrive online-only files from being automatically downloaded to their local drive when searching through synchronized folders in File Explorer.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Performing a file search within a OneDrive-synchronized folder using the local file manager.
- Observed behavior
- Online-only files, including those that do not match the search criteria, are unexpectedly downloaded locally, rapidly consuming device storage.
Ensure you have an active internet connection and check your current local storage capacity to see how much space has been unexpectedly consumed by downloaded files.
Disable File Contents Search in File Explorer
Turn off the advanced search option that scans the contents of files, as this process forces OneDrive to download online-only files to read them.
By default, Windows may attempt to search inside documents to find your requested keywords. Because online-only files do not have their contents stored locally, File Explorer requests OneDrive to download them so they can be scanned. Disabling this feature reduces unnecessary downloads.
Launch File Explorer and navigate to your synchronized OneDrive folder.
Click inside the search box at the top right corner. This action will reveal the 'Search' tab on the top ribbon.
In the Search ribbon, click on 'Advanced options' and ensure that the 'File contents' option is unchecked.
Search Directly on the OneDrive Website
Use the web version of OneDrive to search your files without triggering any local downloads.
Manage Your Documents Seamlessly with WPS Office
If you are frustrated by background downloads and complex synchronization issues in the Microsoft ecosystem, consider switching to WPS Office. It provides a lightweight, highly compatible, and free alternative to Microsoft Office, complete with an intuitive built-in cloud solution that won't clutter your local drive.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install WPS Office: Run the setup file and follow the on-screen instructions to complete the quick installation.
- 3. Save to WPS Cloud: Open any document and use the built-in WPS Cloud feature to securely store and search your files online.

Frequently Asked Questions
Why does File Explorer download OneDrive files when I perform a search?
File Explorer attempts to index and read the text inside your documents to provide accurate search results. Because online-only files do not have their data stored locally, the system forces OneDrive to download them so it can read their contents.
How can I remove the downloaded files and free up my local storage again?
You can easily revert the files to their online-only state. Highlight the files or folders in File Explorer, right-click them, and select 'Free up space'. This removes the local copy while keeping the file safely stored in your OneDrive cloud.
Can I hide certain OneDrive folders from File Explorer entirely?
Yes. Open your OneDrive settings from the system tray icon, navigate to the 'Account' tab, and click 'Choose folders'. You can uncheck any folders you do not want to sync or appear in File Explorer, which prevents them from being searched entirely.
Will disabling 'File contents' search affect my ability to find files?
Yes, disabling this feature means Windows will only search for keywords within the file names and basic metadata. It will no longer look for matching text inside the actual documents.




