DELETE – Delete object from database or plan

Use the DELETE request to delete a record or record segment.

DELETE <resource> <arguments>

If you are deleting a record, the arguments identify the specific record to be deleted. To delete only some information within an occurrence (for example, one of its operations), you must first use a MODIFY request to identify the occurrence, then a DELETE request to delete the operation.

To delete a special resource specification for an operation, you must first use a MODIFY request to identify the occurrence, then a MODIFY request to identify the operation, and finally a DELETE request to delete the special resource.

To delete an interval of a current plan workstation, you must precede the DELETE IVL with a MODIFY CPWS to identify the workstation.

To delete the extended name of an operation, you must use the MODIFY request.

If the DELETE request was used to modify information in the current plan, a later EXECUTE request must be issued for the modification to take effect: Workload Automation Programming Language will do this automatically if OPTIONS EXECUTE(AUTO) is set (this is the default).

Return codes have the following meaning:
0
The request was successful.
4
The record is currently being updated by another user. The record is not deleted.
8
The request was unsuccessful. An error message is issued to the message log data set.