Deleting nodes from compositing via script

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