Delete files in a bucket
Deletes files within the same bucket
- Policy permissions required:
buckets
permissions: noneobjects
permissions:delete
andselect
- Refer to the Storage guide on how access control works
Parameters
paths
REQUIRED
List<String>A list of files to delete, including the path and file name. For example ['folder/image.png'].
final List<FileObject> objects = await supabase
.storage
.from('avatars')
.remove(['avatar1.png']);