After hours of arguing with my code (Trying to eliminate some uv_layers), I'm trying this script directly in the console:
for uv in C.object.data.uv_layers: C.object.data.uv_layers.remove(uv)
This is producing unexpected results, including partial, but not complete, deletion of all uv_layers (Uv Map) I would have expected all maps to be deleted. In addition in some cases I get strange errors, with uv_layers names that are not even present in the C.object.data.uv_layers list.
I would like to be sure that we are talking about a bug, in this case I would eliminate the question right away. If not, I'd like to know if I'm doing something wrong.