code: def delete(self, robj, rw=None, r=None, w=None, dw=None, pr=None, pw=None,
                 timeout=None):
          
          # We could detect quorum_controls here but HTTP ignores
          # unknown flags/params.
          params = {'rw': rw, 'r': r, 'w': w, 'dw': dw, 'pr': pr, 'pw': pw,
                    'timeout': timeout}
          headers = {}
  
          bucket_type = self._get_bucket_type(robj.bucket.bucket_type)
  
          url = self.object_path(robj.bucket.name, robj.key,
                                 bucket_type=bucket_type, **params)
          use_vclocks = (self.tombstone_vclocks() and hasattr(robj, 'vclock') and
                         robj.vclock is not None)
          if use_vclocks:
              headers['X-Riak-Vclock'] = robj.vclock.encode('base64')
          response = self._request('DELETE', url, headers)
          self.check_http_code(response[0], [204, 404])
          return self
docs: Delete an object.