def METHOD_NAME(session: Session, switch: Switch, processor: User) -> None:
    message = deferred_gettext("Deleted switch {}.").format(switch.host.name).to_json()
    log_room_event(message, processor, switch.host.room)
    session.delete(switch)
    session.delete(switch.host)