Delete a database
Reading or writing database documents requires an admin key. |
Solution
Use the Delete
function:
{
ref: Database("llyr"),
ts: 1624310577730000,
name: 'llyr',
data: { env: 'test' },
global_id: 'yoat8nnggybyy'
}
Discussion
When a database is deleted, all of the database contents are deleted, including documents, collections, functions, keys, tokens, roles, access providers, and indexes.
It is not possible to delete the parent database, the current database,
or any of the current database’s peers using Delete
. You can only
delete child databases.
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!