remove access token from memory ref