Home

Empty a bucket

Removes all objects inside a single bucket.

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

final String result = await supabase
  .storage
  .emptyBucket('avatars');