Removing a document (persistent.deleteDocument)
You can use persistent.deleteDocument to remove a document from the database.
persistent.deleteDocument(ddName, id);
Parameter | Type | Required | Description |
---|---|---|---|
ddName | String | Yes | Name of the document definition. If the value is null , BizzStream will use the name of the document from which the script was started. |
id | String | Yes | The ID of the document you want to delete |
Example
You can use the following method to delete a document with BizzStream ID 2FwMgqxxPv6i4j8rc:
persistent.deleteDocument("project", "2FwMgqxxPv6i4j8rc");