DROP SECRET

Synopsis

DROP SECRET secret_name;

Description

Drops an existing secret. You cannot drop a secret if it is referenced by an active query.

Important DROP SECRET cannot be undone. Use it with care!

Arguments

secret_name

The name of the secret to drop. If the name is case sensitive you must wrap it in double quotes; otherwise the system uses the lower case name.

Example

Drop a secret

db1.public/my_store# DROP SECRET mysecret;
+------------+------------+------------+------------------------------------------+
|  Type      |  Name      |  Command   |  Summary                                 |
+============+============+============+==========================================+
| secret     | mysecret   | DROP       | secret "mysecret" has been marked for    |
|            |            |            | deletion                                 |
+------------+------------+------------+------------------------------------------+
db1.public/my_store# LIST SECRETS;
+------------+------------+--------------+----------------+------------+------------+-------------+-------------+
|  Name      |  Type      |  Description |  Access Region |  Status    |  Owner     |  Created At |  Updated At |
+============+============+==============+================+============+============+=============+=============+
+------------+------------+--------------+----------------+------------+------------+-------------+-------------+

Last updated