Skip to content

Delete



POST /api/v1/log_backup_cfg/batch_delete

Overview

Batch delete data forwarding rules and their associated access configurations.

Prerequisites and Usage Steps

Only matching UUIDs in the current workspace that are not deleted and not in deleting state are processed. Misses, empty arrays, or already-deleted items may still return true, and the per-item match count is not returned. If an Iceberg exclusion item is matched, the entire request returns Forbidden before any write; do not mix in rules managed through other entries.

For guanceObject built-in storage rules, status=2 and deleteStatus=deleting are set first, and the background completes the deletion; external target rules are soft-deleted directly. Access configurations associated with matched rules are also marked for deletion. This operation does not directly delete the customer's external buckets, Kafka clusters, Doris tables, or service indexes in this controller; built-in data deletion results must be verified afterwards. A successful true does not mean all data has been cleaned up immediately; rules being deleted are unavailable in details and query jobs.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or fill in: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Body Request Parameters

Parameter Type Required Description
cfgUUIDs[*] string String UUID; the server does not trim whitespace automatically.
Example: lgbp_example
How to obtain or fill in: Get a single rule UUID from Data Forwarding Rule List.
cfgUUIDs array Y Required array of UUIDs, not rule names or a comma-separated string.
Allows null: False
Example: ["lgbp_example"]
How to obtain or fill in: Obtain the target UUIDs from Data Forwarding Rule List.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/log_backup_cfg/batch_delete' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"cfgUUIDs":["lgbp_example"]}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content boolean The request was processed as true; this is not the actual matched count or a marker that physical cleanup is complete.
{
  "code": 200,
  "content": true,
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Handling Method
406 ft.ParameterValidationFailed A request field is missing, or a field value violates the declared validation conditions Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Request JSON syntax is invalid Request JSON format error Fix the JSON according to content.reason, line, and column.
400 ft.JsonFormatError The JSON top level is not an object Some JSON file format error Submit the JSON object described in the parameter table.
403 ft.Forbidden An Iceberg configuration excluded by the current OpenAPI was matched, or the API permission is insufficient You do not have permission to perform this operation Only operate on targets supported by this public list.
500 ft.InternalServerError Database, cache, field shape, or general downstream 5xx/timeout handling failed Internal error After writing, verify the current state of the rule first; for query jobs, confirm task_id first; if the failure persists, provide the traceId.

Feedback

Is this page helpful?