pcb_delete_primitives
Delete one or more PCB primitives by type and ID; the document is backed up first and the response returns a recovery SHA.
Instructions
Delete one or more PCB primitives by type and IDs. Irreversible via this API: there is no undo call. The whole document is snapshotted to the local backup repo first; the response includes the backup SHA for recovery.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Primitive ID(s) to delete | |
| type | Yes | Primitive type to delete | |
| document | Yes | Target document UUID — auto-switches to this document before executing. Get UUIDs from list_instances or editor_get_open_tabs. | |
| instance_id | No | Target EasyEDA instance ID (8-char hex). Required when multiple instances are connected. Omit when only one instance is connected (auto-selected). Use list_instances to see connected instances. |