@classmethod
def delete(cls, info, instance):
    """Delete the instance from the database.

        To do something with the instance "before" or "after" deleting it,
        override either :meth:`.before_delete` and/or :meth:`.after_delete`.
        """
    cls.before_delete(info, instance)
    instance.delete()
    cls.after_delete(info, instance)
