Updated on 2024-10-25 GMT+08:00

Deleting a Dump Task

Initialize a DIS SDK client instance named dic. For details, see Initializing a DIS SDK Client Instance.

You can use the DIS SDK to delete a specified dump task.

1
2
3
4
5
6
7
DeleteTransferTaskRequest request = new DeleteTransferTaskRequest();

//Configure the name of the stream to which the dump task belongs.
request.setStreamName(streamName);

//Configure the name of the dump task to be deleted.
request.setTransferTaskName(taskName);

After configuring DeleteTransferTaskRequest, you can call the deleteTransferTask method to create the dump task.

1
dic.deleteTransferTask(request);