credential.delete()
Delete a credential.
Description
The delete()
method deletes the credential from storage, and
returns an Object representing the deleted document with the
id
and coll
identity fields.
Return value
Type | Description |
---|---|
NullCredential |
Document doesn’t exist or is inaccessible. See NullDoc. |
Examples
Credentials.byId("373081348103995425")!.delete()
Credential("373081348103995425") /* deleted */
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!