fauna delete-key
Delete a database key.
Syntax
fauna delete-key <KEY_NAME> [--[no-]color ] [--endpoint <value>]
[--environment <value>] [--secret <value>] [--timeout <value>]
[--url <value>]
Options
Option | Description |
---|---|
|
Enables or disables color formatting for the output. Color formatting is
enabled by default if the terminal supports it (determined using
chalk/supports-color). Use
|
|
Connection endpoint from |
|
Environment to use, from a Fauna project. |
|
Help for |
|
Authentication secret. Overrides the
secret in Use a scoped key to interact with a child database using a parent database’s admin key. For example, with a parent database’s admin key secret of |
|
Connection timeout (milliseconds). |
|
Database URL. Overrides the URL in |
Example
There are already four keys for this example:
fauna list-keys
The response includes each key’s ID, database, and role. It doesn’t include the key’s secret:
Key ID Database Role
259718958404338186 prod server
259719743570706945 prod client
265528117038154259 childDB admin
265437820880945683 childDB admin
Now, delete the first key in the list:
fauna delete-key 259718958404338186
List the keys again:
fauna list-keys
The key you deleted is now gone:
Key ID Database Role
259719743570706945 prod client
265528117038154259 childDB admin
265437820880945683 childDB admin
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!