全部产品

删除投递任务

使用DeleteDeliveryTask接口删除一个投递任务。

参数

参数

说明

tableName

数据表名称。

taskName

投递任务名称。

示例

private static void deleteDeliveryTask(SyncClient client) {
    String tableName = "sampleTable";
    String taskName = "sampledeliverytask";
    DeleteDeliveryTaskRequest request = new DeleteDeliveryTaskRequest(tableName, taskName);
    DeleteDeliveryTaskResponse response = client.deleteDeliveryTask(request);
    System.out.println("resquestID: "+ response.getRequestId());
    System.out.println("traceID: " + response.getTraceId());
    System.out.println("delete task delivery success");
}