JavaScript: Empty a bucket

Removes all objects inside a single bucket.

Parameters

Examples

Empty bucket

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