fn discard_created(state: &AppState, def_id: &str)
Remove an agent whose set-up failed after it was made, as the deleteagent RPC deletes one.
deleteagent