Bucket creation and deletion

Rajiv M Ranganath rajiv.ranganath at gmail.com
Fri May 21 18:24:24 EDT 2010


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





More information about the riak-users mailing list