You can delete access tokens if you want to prevent them from authenticating a user against the Spawn API.
$ spawnctl delete access-token <AccessTokenId>
In this tutorial we delete an access token that has been generated for a CI system.
As a prerequisite you should've followed the instructions to install spawnctl
Run the following command to get the list of access tokens.
$ spawnctl get access-tokens ID CreatedAt Purpose 01c8fb177fd348b9be7d10173e5e48b3 2019-03-26T13:33:31Z CI system Spawn access token
Delete the access token by specifying the ID.
$ spawnctl delete access-token 01c8fb177fd348b9be7d10173e5e48b3
Get the list of access tokens to confirm it has been deleted.
$ spawnctl get access-tokens No resources found.