ofnuts wrote:
Read the fine print: "This procedure deletes the specified item. This must not be done if the image containing this item was already deleted or if the item was already removed from the image. The only case in which this procedure is useful is if you want to get rid of a item which has not yet been added to an image."
If you want to get rid of a layer in an image just do: image.remove_layer(layer)
Thanks, works as you suggested. Nice!
Probably I did not read the info in the Browse correctly
Peter