DROP API_TOKEN

Syntax

DROP API_TOKEN api_token_name;

Description

DROP API_TOKEN cannot be undone. Use it with care!

Arguments

api_token_name

The name of the API_TOKEN to drop. For case-sensitive names, the name must be wrapped in double quotes, otherwise, the lowercased name will be used.

Examples

Drop an API_TOKEN

The following shows how to drop the API_TOKEN named my_token:

<no-db>/<no-store># LIST API_TOKENS;
+-------------+------------+-------------------------------+-------------------------------+
|  Name       |  Last Used |  Created At                   |  Expires At                   |
+=============+============+===============================+===============================+
| my_token    | <null>     | 2024-06-04 22:42:18 +0000 UTC | 2024-09-02 22:42:18 +0000 UTC |
+-------------+------------+-------------------------------+-------------------------------+
<no-db>/<no-store># DROP API_TOKEN my_token;
+------------+------------+------------+------------------------------------------+
|  Type      |  Name      |  Command   |  Summary                                 |
+============+============+============+==========================================+
| api_token  | my_token   | DROP       | api_token my_token was successfully      |
|            |            |            | dropped                                  |
+------------+------------+------------+------------------------------------------+

Last updated