def __deleteData__(self, uri, query, auth = True):
    if self.ssl:
      url = "%s://%s:%s%s" % ( 'https', self.hostname, self.port, uri )
    else:
      url = "%s://%s:%s%s" % ( 'http', self.hostname, self.port, uri )

    full_uri = "%s" % ( uri )
    if query != None:
      full_uri = "%s?%s" % ( full_uri, urllib.urlencode( query ) )

    if self.token:
      if auth:
        headers = { 'Content-Type': 'application/json', 'X-Auth-Token': self.token }
      else:
        headers = { 'Content-Type': 'application/json' }
    else:
      date = utils.formatdate()
      if auth:
        sig = self.__signRequest__('DELETE', full_uri, date, "application/json")
        headers = { 'Content-Type': 'application/json', 'Date': date, 'Authorization': sig }
      else:
        headers = { 'Content-Type': 'application/json', 'Date': date }

    r = requests.delete( url, params=query, headers=headers )
    return self.__processResponse__( { 'status': r.status_code, 'data': r.text } )
dataset/ETHPy150Open beebotte/bbt_python/beebotte/__init__.py/BBT.__deleteData__/original