Repository navigation
Delete whole local file cache #9128
Description
Activity
I'd like to try implementing this feature!
- addedhotspot: device storageStorage (on-device) related. Permissions, paths, inconsistencies, etc.Storage (on-device) related. Permissions, paths, inconsistencies, etc.feature: transfers[WIP] Any uploading / downloading matters that aren't auto upload or sync specific[WIP] Any uploading / downloading matters that aren't auto upload or sync specific
on Oct 10, 2023 - removedfeature: transfers[WIP] Any uploading / downloading matters that aren't auto upload or sync specific[WIP] Any uploading / downloading matters that aren't auto upload or sync specific
on Oct 19, 2023 Any update on this?...
The Nextcloud app is using ~10GB of "user data" and I need to clear space from my phone.@ThomasHineXYZ than just do it? This feature is there forever but as a Standard OS mechanism. You need to navigate to Apps and than Nextcloud via your Phones general settings. Than Android offers you the options to purge the cache or the user data.
Reacted by Thomas Hine, Adarsh Hegde, Shenzhi Jia and BluePixel4kBecause it's not always possible. From Android settings (esp. on Chinese phones, Xiaomi, Huawei, etc.) you can't selectively delete user data only. All or nothing.
Next, within Nextcloud itself the feature of removing the local storage is buggy. There's 10 GB of local data allocated on your device for Nextcloud cache but someone revoked a 5 GB directory access. The synced data is still lingering but you can't anymore delete it from the application because you don't see that directory.
A real, proper solution is needed here instead of phone- and situation-specific workarounds.
Reacted by Thomas Hine@AndyScherzinger Last time I tried that, it asked me to go through the whole rigmarole of signing in, waiting, and then re-syncing and re-setting up everything. I have some other apps set to load files from the Nextcloud app directly, such as Keepass. It also breaks all of the add-on companion apps such as Nextcloud Bookmarks and Nextcloud News.
Also, @szotsaki is correct. Having a proper way to "force" an update on the local cached data and/or a "clear" option is needed. I wouldn't mind having to resync / re-fetch the few megabytes of data that would need to be if everything was cleared locally.
Reacted by rrdd@ThomasHineXYZ agreed, makes sense in terms of having a way for cleaning and clearing, even when at the cost of re-downloading.
Reacted by rrddWhile not a single tap, navigating to "On this device", long-pressing on an entry, selecting .../Select all and then .../Delete (and then of course local only) was quite easy, I was afraid it would be more hassle.
- marked Media tmp files aren't cleaned up after upload #10715 as a duplicate of this issue
on Mar 29, 2025 While not a single tap, navigating to "On this device", long-pressing on an entry, selecting .../Select all and then .../Delete (and then of course local only) was quite easy, I was afraid it would be more hassle.
This suggestion doesn't delete the local upload cache. Only way to do currently is to delete the whole app.
Hopefully this gets fixed in the next time.
Reacted by JustACasual, Thomas Hine and Bernhard Tittelbachpitching in to underline and clarify the problem
State
- Android 16
- Nextcloud App version 3.34.0
- I have 5 Nextcloud Accounts configured in the App
- Clearing "Internal Storage" via Android-provided App Settings would delete all accounts and creates a lot of work. For some people, this might mean visiting several admins. In my case, it means a lot of people coming to me.
- On all of these accounts:
- The list of uploads is empty
- All Local files have been deleted (via "On Device" Tab)
- The app (and all accounts?) are configured to use
Android/media/com.nextcloud.clientas storage location and allow other apps access. - Calculating total space used by
Android/media/com.nextcloud.clientwith a File-Manager shows 0B- (yes I cleaned up the
tmpFolder)
- (yes I cleaned up the
Problem
Nextcloud App is still using 10GiB in "internal storage"!
Suspicion
This storage is from uploads, where other apps "shared" files with Nextcloud and the Nextcloud App then crashed. Accumulating hidden data that the app has no record of.
Proposal
It would be great if either/or
- the app would frequently purge it's internal orphan files
- provide the user a button to clear all internal files Without affecting account settings
- provide a way to export/import account configurations - so the android-provided "clear storage" can be used
Is your feature request related to a problem? Please describe.
I'm missing a feature for deleting the whole file cache of the Android app. When working with many files, these often needs to get downloaded in the app. These downloaded files remain in the local cache.
In order to clear the cache, you have to navigate to "on this device" in the app's menu and delete all folders shown (be careful that you only delete the cache and not the files in the cloud).
Describe the solution you'd like
The app for iOS has a feature in its settings to delete the whole file cache of the app by only one tap.
I would love to see such a feature for the Android app.
Describe alternatives you've considered
As described above, delete all cached folders from "on this device".