Delete a key
Reading or writing key definitions requires an admin key. |
Solution
Use the function:Delete[] function:
{
ref: Ref(Keys(), "1"),
ts: 1631727967280000,
role: 'admin',
hashed_secret: '$2a$05$qbGb.Xk0N.7Dnu9LP6MF7up7bgAlR1RiJyyZ4zaRXT521OWwL0Sam',
data: { team: 'Engineering' }
}
Discussion
Once a key has been deleted, any client still using the key’s secret can no longer execute queries.
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!