1 ---
2 title: Revoking access tokens
3 redirect_from:
4 - /revoking-authentication-tokens
5 ---
6
7 To keep your account and packages secure, we strongly recommend revoking (deleting) tokens you no longer need or that have been compromised. You can revoke any token you have created.
8
9 1. To see a list of your tokens, on the command line, run:
10
11 ```
12 npm token list
13 ```
14
15 2. In the tokens table, find and copy the ID of the token you want to delete.
16
17 3. On the command line, run the following command, replacing `123456` with the ID of the token you want to delete:
18
19 ```
20 npm token delete 123456
21 ```
22
23 npm will report `Removed 1 token`
24
25 4. To confirm that the token has been removed, run:
26
27 ```
28 npm token list
29 ```
30
31 <Note>
32
33 **Note:** You must use the token ID to delete a token, not the truncated version of the token. In some cases, there may be a delay of up to an hour before a token is successfully revoked.
34
35 </Note>