Deleting nodes from compositing via script

To clear compositing window (completely remove all nodes from it), run the following code:

 

Nikita

Author: Nikita

Blender add-ons developer and articles writer.