credential.delete()

Delete a credential.

Signature

delete() => NullCredential

Description

The delete() method deletes the credential from storage, and returns an Object representing the deleted document with the id and coll identity fields.

Parameters

None

Return value

Type Description

NullCredential

Document doesn’t exist or is inaccessible. See NullDoc.

Examples

Credential.byId("401670627820306505")!.delete()
Credential("401670627820306505") /* 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!