/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>
Run Code Online (Sandbox Code Playgroud)
好吧,我在尝试一些我不再需要的东西时创建了一组桶类型 - 我可以在不重新安装Riak的情况下摆脱这些吗?
小智 7
遗憾的是,目前Riak中没有任何记录方法可以删除未使用的存储桶类型.
如果您不介意删除Riak中的所有数据,可以停止Riak,删除数据目录的内容,然后重新启动Riak.(如果您有多个节点,则需要在重新启动节点之前停止每个节点并删除每个节点上的数据目录.)
如果只删除Bitcask或LevelDB数据目录中的数据,则桶类型元数据仍将存在于环中.