diff --git a/lib/couchie.ex b/lib/couchie.ex index 9118274..eb211fb 100755 --- a/lib/couchie.ex +++ b/lib/couchie.ex @@ -123,6 +123,16 @@ defmodule Couchie do :cberl.remove(connection, key) end + @doc """ + Empty the contents of the specified bucket, deleting all stored data. + ## Example + + Couchie.flush(:connection) + """ + def flush(connection) do + :cberl.flush(connection) + end + @doc """ Delete document. Key should be binary. ## Example