Skip to content

Delete whole local file cache #9128

Description

@DecaTec

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".

Activity

  1. jimrod942 commented on Oct 24, 2021

    @jimrod942

    I'd like to try implementing this feature!

  2. added
    hotspot: device storageStorage (on-device) related. Permissions, paths, inconsistencies, etc.
    feature: transfers[WIP] Any uploading / downloading matters that aren't auto upload or sync specific
    on Oct 10, 2023
  3. removed
    feature: transfers[WIP] Any uploading / downloading matters that aren't auto upload or sync specific
    on Oct 19, 2023
  4. ThomasHineXYZ commented on Jun 29, 2024

    @ThomasHineXYZ

    Any update on this?...
    The Nextcloud app is using ~10GB of "user data" and I need to clear space from my phone.

  5. AndyScherzinger commented on Jun 29, 2024

    @AndyScherzinger
    Member

    @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.

  6. szotsaki commented on Oct 11, 2024

    @szotsaki

    Because 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.

  7. ThomasHineXYZ commented on Oct 11, 2024

    @ThomasHineXYZ

    @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.

  8. AndyScherzinger commented on Oct 11, 2024

    @AndyScherzinger
    Member

    @ThomasHineXYZ agreed, makes sense in terms of having a way for cleaning and clearing, even when at the cost of re-downloading.

    Cc @tobiasKaminsky @alperozturk96

  9. mormegil-cz commented on Dec 8, 2024

    @mormegil-cz

    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.

  10. rrdd commented on Apr 26, 2025

    @rrdd

    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.

  11. btittelbach commented on Oct 10, 2025

    @btittelbach

    pitching 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.client as storage location and allow other apps access.
    • Calculating total space used by Android/media/com.nextcloud.client with a File-Manager shows 0B
      • (yes I cleaned up the tmp Folder)

    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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhotspot: device storageStorage (on-device) related. Permissions, paths, inconsistencies, etc.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions