Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 367 Bytes

File metadata and controls

17 lines (14 loc) · 367 Bytes
description
How-to delete a document in TerminusDB and TerminusCMS using the JavaScript Client

Delete a Document

In order to delete a document you need to know the document id.

const deleteDoc = async () => {
  const docId = "Player/George"
  await client.deleteDoc({id:docId});
  console.log(`the ${docId} has been deleted`)
}