delete()

Delete a credential.

Signature

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

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

Credentials.byId("373081348103995425")!.delete()
Credential.byId("373081348103995425") /* not found */

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!