def METHOD_NAME(id):
    proposal = Proposal.query.get_or_404(id)
    can_delete = proposal.user_id == current_user.id and proposal.user_scheduled
    if not can_delete:
        app.logger.warn(f"{current_user} cannot delete proposal {proposal}")
        flash("You can't delete this content")
        return redirect(url_for("schedule.attendee_content"))
    form = DeleteAttendeeContentForm()
    if form.validate_on_submit():
        db.session.delete(proposal)
        db.session.commit()
        return redirect(url_for("schedule.attendee_content"))
    return render_template(
        "schedule/attendee_content/delete.html",
        proposal=proposal,
        form=form,
    )