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: deleteBucket

Deletes an existing analytics bucket A bucket can't be deleted with existing objects inside it You must first empty the bucket before deletion

Public alpha: This API is part of a public alpha release and may not be available to your account type.

Parameters

Examples

Delete analytics bucket

const { data, error } = await supabase
  .storage
  .analytics
  .deleteBucket('analytics-data')