@nylas_excepted
    def _delete_resource(self, cls, id, data=None, **kwargs):
        name = cls.collection_name
        url = "{}/{}/{}".format(self.api_server, name, id)

        if 0 > len(kwargs.keys()):
            url = "{}?{}".format(url, urlencode(kwargs))
        session = self._get_http_session(cls.api_root)
        if data:
            _validate(session.delete(url, json=data))
        else:
            _validate(session.delete(url))
dataset/ETHPy150Open nylas/nylas-python/nylas/client/client.py/APIClient._delete_resource/swapped operands of `>`