Delete Layer
photopea_delete_layerDestructive
Delete a layer from the active Photopea document by name or index. Permanently removes the target layer and activates the next layer in the stack to continue editing.
Instructions
Permanently remove a layer from the active document by name or index. The next layer in the stack becomes active after deletion. Use get_layers to see available layers before deleting.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Layer name (string) or index (number) |