Nuke: Delete unused viewers

You know how sometimes Nuke’s caching gets super slow and You sit there and wonder why, only to find out that you have another viewer hiding somewhere inside a group node, slowing everything down? No? Well, happens to me a lot. So instead of going treasure hunting everytime, I made a quick thing to do it for me:

Run in Script Console inside Nuke:

Download From Github

Just remove the function call on the last line if you want to add it to the .