delete_layer
Delete a specific layer from a GIMP image by name or index, or remove the active layer when no target is provided. Returns status after removal.
Instructions
Delete a layer from an image.
Parameters:
layer_name: Name of the layer to delete
layer_index: Position index of the layer (alternative to layer_name)
image_index: Target image index (default 0)
Provide either layer_name or layer_index. Defaults to active layer if neither given.
Returns status dict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | ||
| image_index | No | ||
| layer_index | No |