Beetle.delete_buckets

You're seeing just the function delete_buckets, go back to Beetle module for more information.

Specs

delete_buckets(id :: String.t()) ::
  {:ok, count :: integer()} | {:error, reason :: any()}

Delete all buckets belonging to the provided id, including the current one. Effectively resets the rate-limit for the id.

Arguments:

  • id: String name of the bucket

Returns either {:ok, count} where count is the number of buckets deleted, or {:error, reason}.

Example:

user_id = 2406
{:ok, _count} = delete_buckets("file_uploads:#{user_id}")
Link to this function

delete_buckets(backend, id)

View Source

Specs

delete_buckets(backend :: atom(), id :: String.t()) ::
  {:ok, count :: integer()} | {:error, reason :: any()}

Same as delete_buckets/1, but allows specifying a backend