Bucket creation and deletion

Adam Hunter adamhunter at me.com
Fri May 21 18:36:39 EDT 2010


Hey,

Buckets act as a namespace only if you do not specify any properties for them.  They come into existence on demand, so there is currently no meaningful way to delete them.  I *heard* Basho was considering using DELETE to a bucket to empty its contents.

- Adam


On May 21, 2010, at 6:24 PM, Rajiv M Ranganath wrote:

> Hi there,
> 
> Is it default behavior in Riak (thru' the HTTP interface) that everytime a GET request is issued, a bucket automatically gets created if one does not exist?
> 
> Thru' the web interface, I basically did,
> 
> curl -v http://127.0.0.1:8091/riak/abcd1
> curl -v http://127.0.0.1:8091/riak/abcd2
> curl -v http://127.0.0.1:8091/riak/abcd3
> curl -v http://127.0.0.1:8091/riak/abcd4
> 
> and then, via the erlang APIs, the output of Client:list_buckets() showed,
> 
> (dev1 at 127.0.0.1)78> Client:list_buckets().
> {ok,[<<"test1">>,<<"groceries">>,<<"abcd">>,<<"abcd4">>,
>     <<"abcd3">>,<<"abcd2">>,<<"abcd1">>]}
> 
> A related question - Once the buckets are created, is there anyway to delete them?
> 
> Best,
> Rajiv
> 
> 
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com





More information about the riak-users mailing list