def delete(self, key, **kwargs):
"""Deletes a key from Riak. Short hand for
``bucket.new(key).delete()``. See :meth:`RiakClient.delete()
<riak.client.RiakClient.delete>` for options.
:param key: The key for the object
:type key: string
:rtype: RiakObject
"""
return self.new(key).delete(**kwargs)
This expects that new(), will return something that has a delete() method, but Datatype subclasses do not.
This expects that
new(), will return something that has adelete()method, butDatatypesubclasses do not.