vault secrets list code example
Example: list accessors in vault
#list the accessors in vault
vault list auth/token/accessors
#Checking details about the token in detail
vault token lookup -accessor <TOKEN>
#Revoke a token and all the token's children
vault token revoke <TOKEN>
#Revoke a token leaving the token's children
vault token revoke -mode=orphan <TOKEN>
#Revoke a token by accessor
vault token revoke -accessor <ACCESSOR_TOKEN>