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
anddelete
Examples#
Empty bucket#
1final String result = await supabase 2 .storage 3 .emptyBucket('avatars');