@bp.route("<STR_LIT>", methods=("<STR_LIT:POST>",))<EOL>@login_required<EOL>def delete(id):
post = get_post(id)<EOL>db.session.delete(post)<EOL>db.session.commit()<EOL>return redirect(url_for("<STR_LIT>"))<EOL>
Delete a post.

    Ensures that the post exists and that the logged in user is the
    author of the post.