Task Engine 10.11 | Task Engine Webhelp | webMethods Task Engine API and Service Reference | Using the Task Engine Web Service API | deleteTask
 
deleteTask
Deletes an instance of a task from the Task Engine.
Input
taskID
String The ID that identifies the task that you want to delete.
user
String Optional. The user ID of the My webMethods Server user on whose behalf this operation executes.
If user is not specified, the administrative user ID under which your client program logged on is used.
Output
None.
Usage Notes
To delete a task using this operation, you must supply the ID of the task that you want to delete. To obtain this ID, use the searchTasks operation to locate the task and then extract the task ID from the result set that the searchTasks operation returns.
To delete a task successfully, the user ID in user must have permission to access the specified task. If the supplied ID does not have access to the task, or if the specified task does not exist, an exception is thrown.