Sha256: b85b9ded33162d3349682ef01f852993e7b11b95c1517d43c65891b9232492d0

Contents?: true

Size: 813 Bytes

Versions: 11

Compression:

Stored size: 813 Bytes

Contents

Hi,

You can list the keys for the bucket and call delete for each. Or if you
put the keys (and kept track of them in your test) you can delete them
one at a time (without incurring the cost of calling list first.)

Something like:

        String bucket = "my_bucket";
        BucketResponse bucketResponse = riakClient.listBucket(bucket);
        RiakBucketInfo bucketInfo = bucketResponse.getBucketInfo();

        for(String key : bucketInfo.getKeys()) {
            riakClient.delete(bucket, key);
        }


would do it.

See also

http://wiki.basho.com/REST-API.html#Bucket-operations

which says

"At the moment there is no straightforward way to delete an entire
Bucket. There is, however, an open ticket for the feature. To delete all
the keys in a bucket, you'll need to delete them all individually."

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
replyr-0.1.0 test/email_reply_parser/emails/new_content/email_1_2.txt
replyr-0.0.9 test/email_reply_parser/emails/new_content/email_1_2.txt
replyr-0.0.8 test/email_reply_parser/emails/new_content/email_1_2.txt
replyr-0.0.7 test/email_reply_parser/emails/new_content/email_1_2.txt
replyr-0.0.6 test/email_reply_parser/emails/new_content/email_1_2.txt
replyr-0.0.5 test/email_reply_parser/emails/new_content/email_1_2.txt
replyr-0.0.4 test/email_reply_parser/emails/new_content/email_1_2.txt
replyr-0.0.3 test/email_reply_parser/emails/new_content/email_1_2.txt
replyr-0.0.2 test/email_reply_parser/emails/new_content/email_1_2.txt
replyr-0.0.1 test/email_reply_parser/emails/new_content/email_1_2.txt
tr_email_reply_parser-0.6.0 test/emails/new_content/email_1_2.txt