emptyBucket()

Removes all objects inside a single bucket.

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

Notes#

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

Examples#

Empty bucket#

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