Delete a document in WOQL

To use this HowTo, first clone the Star Wars demo into your team on TerminusCMS. You will then have access to the data needed for this tutorial.

Deleting a document in WOQL is possible using the delete_document keyword.

First, let's insert a document.

let v = Vars("id");
insert_document(doc({'@type' : 'Planet', label: 'Planet-X'}),

Supposing we get back the following:


Now we can delete it with the following: