Previous Topic: deleteAttachmentsNext Topic: deleteResource


deleteObject

The deleteObject function deletes and purges the library object specified by the "objectName" parameter. The input parameter can be a full or relative path. The relative path is relative to the process in which the script is executed.

Syntax

bSuccess = deleteObject(objectName)

Arguments

objectName (String)

Specifies the full/relative path of the library object which must be deleted and purged.

Return Value

bSuccess (Boolean)

This function returns true if successful or false if it fails.

Examples

  1. This example deletes the process object found on the path /folder/Process and returns the value True.
    bSuccess = deleteObject('/folder/Process')
    
  2. This function is being executed inside the process "Process_1", and Process_1 is in folder "Folder1" which is present inside the root folder. This function deletes the process with full path "/Folder1/Process" and returns the value True.
    bSuccess = deleteObject('Process')