Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024

Dart Reference v2.0

Delete a bucket

Deletes an existing bucket. A bucket can't be deleted with existing objects inside it. You must first empty() the bucket.

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

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