@bp.route('/<int:uid>/delete', methods=['POST'])
@require_user
def delete(uid):
    # TODO: should we delete the replies of the topic?
    password = request.form.get('password')
    if not password:
        flash(_('Password is required to delete a topic'), 'info')
        return redirect(url_for('.view', uid=uid))
    if not g.user.check_password(password):
        flash(_('Password is wrong'), 'error')
        return redirect(url_for('.view', uid=uid))
    topic = Topic.query.get_or_404(uid)
    topic.delete()
    return redirect(url_for('.topics'))
Perform operations specific to the router type in preparation for
dataset/ETHPy150Open pythoncn/june/june/handlers/topic.py/delete--crossover with--dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/cisco/l3/drivers/__init__.py/L3RouterBaseDriver.update_router_precommit