DeleteDocument

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > Database >

DeleteDocument

Description

Deletes the document (record) with the assigned unique id.
It also keeps track of the parent-child relationships.

Syntax

call DBWShell("DeleteDocument DocUID [okReleasedDatabase]")

Parameters

DocUID

unique id of the document to delete

okReleasedDatabase

Optional.
1: apply deletion to Released Database too

Remarks

Please note this command deletes the record only, so no action will be taken on the files.
To delete files please refer to DeleteFile command

Example

'delete document with unique id 84

DBWShell("DeleteDocument 84")