deleting a register (Python client)

Alex De la rosa alex.rosa.box at gmail.com
Fri Dec 19 06:37:41 EST 2014


Hi there,

This is a pretty dumb question but I think I have never recalled doing it
before. Imagine that I have a register called "something" with a value:

obj.registers['something'].assign('blah')

If later on I want to remove this "something" register from the riak map
object, how to do it? I don't seem to find anywhere in the documentation
how to remove a register.

I could set up an empty string: obj.registers['something'].assign(''), as I
see that when you fetch a register that doesn't exist it returns an empty
string instead of a None. Is this the only way? Or can we remove it in some
other way?

Thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20141219/a9243331/attachment.html>


More information about the riak-users mailing list