from.remove()

Deletes files within the same bucket

1final List<FileObject> objects = await supabase
2  .storage
3  .from('avatars')
4  .remove(['avatar1.png']);

Notes#

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

Examples#

Delete file#

1final List<FileObject> objects = await supabase
2  .storage
3  .from('avatars')
4  .remove(['avatar1.png']);