The active image layer is deleted.
If you try to delete the last image layer on a canvas plane, a new blank image layer is created to take its place (since every canvas plane must have at least one layer).
To delete all layers that have their visiblity icon turned off, choose Edit > Delete all invisible layers.