Dart Reference v2.0

Delete files in a bucket

Deletes files within the same bucket

  • Policy permissions required:
    • buckets permissions: none
    • objects permissions: delete and select
  • 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']);