Skip to main content

from.remove()

Deletes files within the same bucket

final res = await supabase
.storage
.from('avatars')
.remove(['avatar1.png']);

Notes#

  • Policy permissions required:
    • buckets permissions: none
    • objects permissions: delete and select

Examples#

Delete file#

final res = await supabase
.storage
.from('avatars')
.remove(['avatar1.png']);