11-05-2021, 11:34 PM
To get rid of these image, you can try:
where image_id is the ID reported by the incantation above.
If you feel adventurous, you can also try:
It basically tells Gimp to delete all images, but Gimp won't delete those that have an attached display, so you should be safe.
Code:
gimp.delete(gimp._id2image(image_id))
where image_id is the ID reported by the incantation above.
If you feel adventurous, you can also try:
Code:
[gimp.delete(image) for image in gimp.image_list()]