Skip to content

supabase db reset --linked potentially create orphaned storage objects #3252

Description

@IPJT

Hi there,

Previously (not sure what version) when running supabase db reset --linked it failed if there were storage objects and I had to manually remove the storage objects before successfully resetting the remote db.

On v2.15.8 (and most likely versions before that) it seems like supabase db reset --linked will wipe all the metadata but not the storage objects themselves and thus creating orphaned storage objects. Doing exactly what the documentation is warning about:

Deleting objects should always be done via the Storage API and NOT via a SQL query. Deleting objects via a SQL query will not remove the object from the bucket and will result in the object being orphaned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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