Delete method: Agent class
Syntax
Delete()
Description
Use the Delete method to delete an agent from the database. You cannot delete an agent that has still has open tasks.
Parameters
None.
Returns
A number. The values are:
| Value | Description |
|---|---|
|
0 |
Agent deleted successfully. |
|
1 |
Invalid agent ID. |
|
2 |
Agent has accepted task and cannot be deleted. |
|
3 |
Other SQL error in executing deletion. Possibly there are errors in the child tables. |
Example
import PT_MCF_UQAPI:*;
&testAgent = create PT_MCF_UQAPI:Agent("QEMGR");
/* Delete an UQ Agent definition */
&retCode = &testAgent.Delete();