Khorkrak
Khorkrak

Reputation: 4017

How to deactivate or delete a bucket type in 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?

Upvotes: 7

Views: 3251

Answers (1)

Craig
Craig

Reputation: 1001

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.

Upvotes: 7

Related Questions