std.DeleteObject

This job identifies an object (document, register, folder) via the specified parameters and deletes it. The parameters dwParentID and dwParentType are only considered for documents. If a document has multiple entries in the sdrel table and dwParentID = 0 and dwParentType = 0, all entries in this table will be deleted.

1. Input Parameters

Name Type Required Description

sDeleteMethod

STRING

Yes

Deletion method:
Delete = object is deleted (without trash bin), or objects in the trash bin are permanently deleted
DeleteWithDocs = valid for cabinet/register; all contained registers/documents are deleted
Recycle = object is moved to the trash bin

dwObjectID

INT

Yes

ID of the object

dwObjectType

INT

Yes

Type of the object to be deleted

dwParentID

INT

Yes

ID of the parent object

dwParentType

INT

Yes

Type of the parent object

[sSpecific]

STRING

No

Children = subobjects are deleted; otherwise empty

2. Output Parameters

Name Type Dependency Description

[sInfo]

STRING

Optional

Only returned if a register/cabinet to be deleted contains subobjects.

[Clause]

INT

Optional

Always 1

3. Return Value

(INT): 0 = Job successful, otherwise error code.