role.delete()
Learn: Roles |
---|
We recommend you use FSL to create and update user-defined roles. See FSL role schema. |
Delete a role.
Description
This method deletes a document from the Role
system collection, and returns a
Object with the id
and coll
identity fields from the deleted role.
Staged schema
If a database has staged schema, this method interacts with documents for the staged schema, not the database’s active schema.
For more information, see Run a staged schema change.
Return value
Type | Description |
---|---|
type:NullRole |
Document doesn’t exist or is inaccessible. See NullDoc. |
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!