code: def delete(self, resource, rid=None):  # note that rid can't be 0 - problem?
          
          if rid:
              if resource[-1] != '/':
                  resource += '/'
              resource += str(rid)
          response = self._run_method('DELETE', resource)
          return self._handle_response(resource, response, suppress_empty=True)
docs: Deletes the resource with given id 'rid', or all resources of given type if rid is not supplied.