from.remove()
Deletes files within the same bucket
final res = await supabase
.storage
.from('avatars')
.remove(['avatar1.png']);
Notes
- Policy permissions required:
buckets
permissions: noneobjects
permissions:delete
andselect
Examples
Delete file
final res = await supabase
.storage
.from('avatars')
.remove(['avatar1.png']);