For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

JavaScript: emptyBucket

Removes all objects inside a single bucket.

Parameters

Examples

Empty bucket

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