@classmethod
def destroy(cls, *ids):
    """
        Destroy the models for the given IDs

        :param ids: The ids of the models to destroy
        :type ids: tuple

        :return: The number of models destroyed
        :rtype: int
        """
    count = 0
    if len(ids) == 1 and isinstance(ids[0], list):
        ids = ids[0]
    ids = list(ids)
    instance = cls()
    key = instance.get_key_name()
    for model in instance.new_query().where_in(key, ids).get():
        if model.delete():
            count += 1
    return count
