def delete(self):

        # Only delete if ?confirmed=True or confirm = False
        if self.can_delete:

            # Get the sesion and object
            session = self.get_session()
            obj = self.get_object()

            # Delete the object
            session.delete(obj)
            session.commit()  # Delete happens here

            # Call the callback
            self.success_callback()
Deletes the object, only if :py:meth:`can_delete` returns ``True``.
dataset/ETHPy150Open thisissoon/Flask-Velox/flask_velox/mixins/sqla/delete.py/DeleteObjectMixin.delete