I "discovered" a uv-layer called "NGon Face-Vertex".
My goal was to get get rid of all other uv-layers except the active one. So i wrote:
for layer in list(C.object.data.uv_layers):
print("layer",layer)
if not layer.active:
C.object.data.uv_layers.remove(layer)
This code throws the error:
Traceback (most recent call last):
File "<blender_console>", line 4, in <module>
RuntimeError: Error: Texture layer 'NGon Face-Vertex' not found
So i wonder where does this layer come from? Tried it with the default cube and blender version 2.82.8 Thought you people might find it interesing.
Here are some before/after screenshots:

Oh and this is how i do it now to circumvent this misterous layer:
for key in C.object.data.uv_layers.keys():
layer = C.object.data.uv_layers[key]
if not layer.active:
C.object.data.uv_layers.remove(layer)
Edit: added working code to remove all layers but the active one
for i in range(len(my_list), -1, -1):orwhile my_list:– Gorgious Nov 04 '20 at 14:31KeyErroryou can use the dictionarygetas inlayer = C.object.data.uv_layers.get(key). If the layer doesn't exist, the variable will beNoneNext line would then beif layer is not None and layer.active:– Gorgious Nov 04 '20 at 14:35for non_active_layer in [layer for layer in C.object.data.uv_layers if not layer.active]:as the beginning of the for loop. and then removing itC.object.data.uv_layers.remove(non_active_layer)leads to the same error. – Mamu Nov 04 '20 at 15:20C.object.data.uv_layers.active! The error with the misterious uv_layer still appears though. – Mamu Nov 05 '20 at 11:28