Delete_option, Delete_option 343, Syntax – Kofax DM API User Manual

Page 363: Parameters example, Related items

Advertising
background image

DM API T

OKENS

343

%DELETE_OPTION

%DELETE_OPTION

This token is used with the SetProperty method that

PCDDocObject

supports. It allows deletion of either the content or both the profile and
the content of DM objects.

Syntax

PCDDocObject.SetProperty(“%DELETE_OPTION”, _

strDeleteCmd)

Parameters

Example

pDelObject.SetDST(strDST)

pDelObject.SetObjectType("cyd_defprof")

pDelObject.SetProperty("%TARGET_LIBRARY", library)

pDelObject.SetProperty("%OBJECT_IDENTIFIER", docnum)


If (Request("deleteContent").count>0) _

Or (Request("searchDeleteContent").count>0) Then

pDelObject.SetProperty("%DELETE_OPTION", _

"%DELETE_PHYSICAL_FILES")

Else

pDelObject.SetProperty("%DELETE_OPTION", "%DELETE_ALL")

End If


'Clean up.

pDelObject.Delete()

Related Items

See the

PCDDocObject

object.

%DELETE_OPTION

The token that indicates the content, or
the content and the profile, is to be
deleted from a DM object.

strDeleteCmd

The token that indicates the type of
delete operation that is to occur. This
variable must resolve either to

%DELETE_PHYSICAL_FILES or to

%DELETE_ALL”.

Advertising