def delete(cls, id, api_key=None, **kwargs):
        """Delete an entity from the server by ID."""
        inst = cls(api_key=api_key)
        endpoint = '/'.join((cls.get_endpoint(), id))
        inst.request('DELETE', endpoint=endpoint, query_params=kwargs)
        inst._is_deleted = True
        return True
Delete an entity from the server by ID.