Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deactivate or delete a bucket type in Riak?

Tags:

riak

/home/khorkak> sudo riak-admin bucket-type
Usage: riak-admin bucket-type <command>

The follow commands can be used to manage bucket types for the cluster:

   list                           List all bucket types and their activation status
   status <type>                  Display the status and properties of a type
   activate <type>                Activate a type
   create <type> <json>           Create or modify a type before activation
   update <type> <json>           Update a type after activation
/home/khorkak>

Well I have a set of bucket types I created while trying some things out that I no longer want around - can I get rid of these without reinstalling Riak?

like image 584
Khorkrak Avatar asked Dec 19 '14 13:12

Khorkrak


1 Answers

Unfortunately there is no documented way within Riak currently to delete unused bucket types.

If you don't mind deleting all of the data in Riak you can stop Riak, delete the contents of the data directory, and then restart Riak. (If you have more than one node you will need to to stop each node and delete the data directory on each before restarting the nodes back up.)

If you only delete the data within Bitcask or LevelDB data directories the bucket type metadata will still exist in the ring.

like image 83
Craig Avatar answered Sep 23 '22 15:09

Craig