Skip to content

[Bug]: offlineManager.deletePack don't delete data but only pack #3860

@djangoamidala

Description

@djangoamidala

Mapbox Implementation

Mapbox

Mapbox Version

Default

React Native Version

0.78.2

Platform

Android, iOS

@rnmapbox/maps version

10.1.39

Standalone component to reproduce

Mapbox.offlineManager.deletePack(packToDelete.name)

Hi, I’ve been waiting for quite a while for a fix to the deletePack() behavior in offline mode. Currently, no matter what I try, the cached data remains — only the pack metadata is deleted.
I tried deleting the data using react-native-fs, but it doesn’t work properly since it only removes the files, not the database entries.
I tried every possible way in the documentation but nothing work

The only workaround I found is clearing the entire cache, but the issue is that we can’t selectively keep one or more packs — everything is removed. :/

Observed behavior and steps to reproduce

You just have to create a pack with Mapbox.offlineManager.createPack(data)

Expected behavior

No response

Notes / preliminary analysis

No response

Additional links and references

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions