Skip to content

Delete



POST /api/v1/tag/delete

Overview

Soft-delete tags in batches and clean up related entity references and tag permissions in the current workspace.

Before Calling and Usage Steps

Retrieve the tagUUIDs array from the list. Only soft-delete matching tags with status=0 in the current workspace, and clean up target references and TagPermission in the current workspace; it does not delete resources or raw data, nor does it automatically clear all data stored by name in other configurations, infrastructure, or the Unified Catalog. Unlike scope changes, this deletion path does not specifically clean up the rule extend.incidentsTags or perform a Synthetic Test configuration refresh; after the operation, verify how the associated configurations are actually displayed. An empty array or no valid match may also return true, which does not mean all inputs were actually deleted.

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 enter: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Body Request Parameters

Parameter Type Required Description
tagUUIDs[*] string Names cannot be used.
Example: tag_example
How to obtain or enter: a single tag UUID.
tagUUIDs array Y Required array; a non-empty array of valid tag UUIDs in the current workspace is recommended.
Allowed null: False
Example: ["tag_example"]
How to obtain or enter: retrieve the UUID collection from the Tag List.

Request Example

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

Response

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

Field Type Description
content boolean true on success; no per-item results or deletion count.
{
  "code": 200,
  "content": true,
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

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

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
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 The request JSON syntax is invalid Request JSON format error Correct the JSON according to content.reason, line, and column.
500 ft.InternalServerError Database, tag/permission structure, cache, or response formatting failed Internal error After checking the request, read back the current tag state; the write may already be committed, so avoid blind repetition. If the failure persists, provide traceId.

Feedback

Is this page helpful?