Flutter: Delete a bucket

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

Parameters

Examples

Delete bucket

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