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.

token.delete()

Delete a token.

Signature

delete() => { id: ID, coll: Collection}

Description

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

Parameters

None

Return value

Type Description

NullToken

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

Examples

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