def METHOD_NAME(self, page_id):
    page = Pages.query.filter_by(id=page_id).first_or_404()
    db.session.METHOD_NAME(page)
    db.session.commit()
    db.session.close()
    clear_pages()
    return {"success": True}