accessProvider.delete()

Learn: Access providers

We recommend you use FSL to create and update access providers. See Access provider schema.

Deletes an access provider in an FQL query.

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

NullAccessProvider

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

Examples

AccessProvider.byName("someIssuer")?.delete()
AccessProvider.byName("someIssuer") /* 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!