Delete a token file

If you used puppet-access to generate a token, you can remove the token file by running the delete-token-file action. This is useful if you are working on a server that is used by multiple people.

Deleting the token file prevents other users from using your authentication token, but does not revoke the token. After the token has expired, there's no risk of obtaining the contents of the token file.

From the command line, run one of the following commands, depending on the path to your token file:

  • If your token is at the default token file location, run:
    puppet-access delete-token-file
  • If you used a different path to store your token file, run:
    puppet-access delete-token-file --token-path <TOKEN_PATH>