Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

credential.delete()

Learn: Credentials

Delete a credential.

Signature

delete() => NullCredential

Description

Deletes a credential, represented as a Credential document.

A credential associates a password with an identity document. You can use credentials and the credential.login() method to create tokens as part of an end-user authentication system.

Parameters

None

Return value

Type Description

NullCredential

Document doesn’t exist. 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!