delete()

Learn: Collection schema

We recommend you use FSL to create and update user-defined collections. See Collection schema.

Delete the collection instance.

Signature

delete(): NullCollectionDef

Description

The delete() method deletes the Collection instance.

Parameters

None

Return value

Type Description

NullCollectionDef

Collection deleted.

Examples

Collection.byName("Store")!.delete()
Collection.byName("Store") /* 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!