Delete node input

Hello Blender-friends,

at the moment i’m working at a little addon for external compositing.

In my addon will be a “prepare scene”-function which will clean the scene of all lamps and so an.

I also set the background color of the world node to black.

My problem is, how to delete a environment map plugged into background node?

Can you guys help me with a small python snipped?


Greetings
biteworks

Can no one help me?