Delete a delivery task
Tablestore SDK for Java deletes a delivery task that is no longer required.
Prerequisites
Install the Tablestore SDK for Java and initialize a client. Data delivery requires version 5.10.3 or later. We recommend that you use the latest version.
Description
Call deleteDeliveryTask to delete a delivery task from a specified data table.
A deleted delivery task cannot be restored. Before you delete a task, make sure that the task is no longer required.
public DeleteDeliveryTaskResponse deleteDeliveryTask(DeleteDeliveryTaskRequest request)
throws TableStoreException, ClientException
The following sample deletes the example_task delivery task from the example_table data table. client is an initialized client.
String tableName = "example_table";
String taskName = "example_task";
DeleteDeliveryTaskRequest request =
new DeleteDeliveryTaskRequest(tableName, taskName);
client.deleteDeliveryTask(request);
Parameters
request is of the DeleteDeliveryTaskRequest type and contains the following parameters.
|
Name |
Type |
Description |
|
tableName (required) |
String |
The name of the data table. |
|
taskName (required) |
String |
The name of the delivery task. |