# Gimp.Item.prototype.delete

    function delete(): Boolean {
        // Gjs wrapper for gimp_item_delete()
    }

Delete a item.

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.

Since 2.8

Returns

  TRUE on success.