Delete section
swebsy_delete_sectionDeletes a page component entirely, preventing the stray blank div left by emptying a section. Target the selected component or specify an id/path to remove another component.
Instructions
Remove a component from the current page entirely. Use this instead of emptying a section's contents — an emptied section leaves a stray blank div on the page. Deletes the selected component by default; pass targetId or targetPath (from read_page) to delete a component you did not select.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | 1 sentence naming what is being removed. | |
| targetId | No | The component to delete by its id, as `read_page` shows it after `#` (e.g. "ieyubib", or "call-2-2" in a symbol instance). Stays valid when other components move or are added, unlike a path. Pass this OR the path, not both. | |
| targetPath | No | Zero-based component indexes from the current page root, exactly as returned by the most recent `read_page` call. Omit to delete the selected component. |