How to remove a saved API key (clearrun logout)
Run clearrun logout. It removes the key that clearrun login saved on your computer. It does not turn the key off.
Last updated
Steps
Run logout
clearrun logoutIt prints
Removed the saved ClearRun API key.If nothing was saved, it printsNo saved ClearRun API key to remove.Check for an environment variable
If
CLEARRUN_API_KEYis set in your shell, logout tells you:CLEARRUN_API_KEY is set in this shell, so commands still use that key.Unset it to stop using it:unset CLEARRUN_API_KEY
The key still works after logout
Logout only changes the file on your computer. To turn the key off, revoke it on the API keys page. If you think it leaked, see What to do if your ClearRun API key leaked.