All Products
Search
Document Center

Delete delivery tasks

Last Updated: Dec 08, 2020

You can call the DeleteDeliveryTask operation to delete a delivery task.

Parameters

Parameter

Description

TableName

The name of the table.

TaskName

The name of the delivery task.

Examples

func DeleteTaskSample(client *tablestore.TableStoreClient, tableName, taskName string) {
 delResp, err := client.DeleteDeliveryTask(&tablestore.DeleteDeliveryTaskRequest{
  TableName: tableName,
  TaskName: taskName,
 })
 if err != nil {
  log.Fatal("delete delivery task failed ", err)
 }
 fmt.Println("delete task success", delResp.RequestId)
}