Delete
Remove specific measurements from the canvas.
To remove a specific measurement, send the delete command along with the unique identifier (GUID) of the annotation.
This GUID is typically obtained when the measurement is created or selected.
After the delete request runs, listen for `annotationDeleted` to confirm that the viewer completed the removal.
Deletion is a host-driven action followed by a completion event from the viewer.
1. Host Sends
The host application sends the deleteAnnotation message with a specific GUID.
2. Viewer Emits annotationDeleted
The viewer removes the element, updates the canvas, and emits `annotationDeleted`.
3. Host Handles Completion
The host listens for the completion event and updates its own UI or state.
Delete by GUID
Listen for annotationDeleted
Continue with related measurement workflows and API references.
- Clear: Clear Canvas
- Tools: Measurement Tools
- Calibration: Scale Reference
- Technical: API Reference
