Skip to main content
Version: v1-dev

emptyBucket()

Removes all objects inside a single bucket.

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

Notes

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

Examples

Empty bucket

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