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

  1. Run logout

    clearrun logout

    It prints Removed the saved ClearRun API key. If nothing was saved, it prints No saved ClearRun API key to remove.

  2. Check for an environment variable

    If CLEARRUN_API_KEY is 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.