Home

Empty a bucket

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

const { data, error } = await supabase
  .storage
  .emptyBucket('avatars')