---
title: "Annotation Deletion"
method: DELETE
path: "/openapi/v2.0/workspaces/{workspace_id}/elements/{id}"
tags: ["Map/Map Annotation/Annotation Deletion", "Map/Map Annotation/Annotation CRUD"]
---

# Annotation Deletion

`DELETE /openapi/v2.0/workspaces/{workspace_id}/elements/{id}`

## Request

- Base URL: `` (relative, and it does not resolve against the document’s source URL)
- URL: `/openapi/v2.0/workspaces/{workspace_id}/elements/{id}`
- Auth: none required

Delete a map annotation. If the parent layer has been distributed to other organizations, the distributed copies are deleted as well

## Path parameters

- `workspace_id` string, uuid, required
- `id` string, uuid, required

## Headers

- `X-User-Token` string, required
- `X-Project-Uuid` string, required
- `X-Request-Id` string
- `X-Language` string

## Response `200`

success

- object
  - `code` integer: Non-zero Indicates Exception
  - `message` string: Message Prompt
  - `data` object: Deletion Result
    - `id` string: UUID of Deleted Annotation Element
    - `affected_tri_states` object[]: Tri-state Selection Status List of Affected Layers
      - `group_id` string, uuid: Layer (element group) UUID
      - `tri_state` 'all' | 'half' | 'none': Tri-state selection: all=fully selected, half=partially selected, none=not selected

## Other responses

- `400`: Parameter Error
- `401`: Authentication Failed
- `403`: Insufficient Permission
- `404`: Resource Not Found
- `500`: Service Exception

---

[API](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud.md) - [All operations](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/revisions/aeef0010be34?raw)
