Skip to content

Delete



GET /api/v1/viewer/{viewer_uuid}/delete

Overview

Delete the specified Explorer through the existing GET route.

Before Calling and Usage Steps

Confirm the UUID to delete from the Explorer List. If recovery may be needed, back it up first using Export Explorer. Deletion cleans up the Explorer and related charts, variables, and other content. This GET writes state and should be called explicitly only after you have confirmed that you want to delete it.

Route Parameters

Parameter Type Required Description
viewer_uuid string Y UUID of the target Explorer in the current workspace.
Example: dsbd_view_example
How to obtain or enter: Get it from content.data[].uuid in the Explorer List, or from content.uuid in the create response.

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 permission for this operation from API Key Management in the target workspace.

Additional Parameter Notes

If the request times out or the result is unclear, query the Explorer List first, and then decide the next step.

Request Example

curl --get 'https://openapi.guance.com/api/v1/viewer/dsbd_view_example/delete' \
  -H 'DF-API-KEY: <DF-API-KEY>'

Response

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

Field Type Description
content array<string> An array of deleted Explorer names.
{
  "code": 200,
  "content": [
    "主机巡检查看器"
  ],
  "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
404 ft.NotFoundView The target does not exist, has been deleted, or is not in the current workspace Specified view not found Reconfirm the valid UUID using the Explorer List in the same workspace.

Feedback

Is this page helpful?