@action(route="/stations/delete/<id>")
@json_only()
@only_orga_admin_user()
def stations_delete(request, id):

    object = Station.query.filter_by(orga=int(request.args.get('ebuio_orgapk')), id=int(id)).first()
    db.session.delete(object)
    db.session.commit()

    return PlugItRedirect('stations/?deleted=yes')
Delete a station.
dataset/ETHPy150Open ebu/radiodns-plugit/RadioDns-PlugIt/stations/actions.py/stations_delete