sketch_delete
Deletes specified curves, points, constraints, dimensions, and texts from a Fusion sketch while keeping the sketch; all refs are validated before any deletion.
Instructions
Delete sketch entities (not the sketch itself).
All refs are checked first: a stale or foreign ref fails with ENTITY_NOT_FOUND /
INVALID_PARAMS and nothing is deleted. Then dimensions, constraints, texts, curves and
points are deleted in that order; entities Fusion already removed with another one
(e.g. a constraint of a deleted line) are listed in cascaded.
NOT ATOMIC (the only such sketch tool): Fusion cannot undo a deletion. If Fusion
itself fails in the middle of the batch, the entities deleted so far stay deleted —
the error is FUSION_API_ERROR with details.deleted; re-read the sketch with
sketch_get before continuing.
Returns {"deleted": [refs], "cascaded": [refs], "status", "profiles"}.
Example: sketch_delete(sketch=, entities=[, ]).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch | Yes | Sketch ref (from sketch_create) | |
| entities | Yes | Curves, points, constraints, dimensions, texts | |
| return_profiles | No | Add the current profiles to the result (false = faster) |