Remove Unused Nodes from the Canvas

Hello friends,

I was wondering if there’s an easy way to remove all the nodes that I’m not using from the canvas, like all nodes in this section:

I know about NODES_INCLUDE / NODES_EXCLUDE, but it would be a huge pain to gather all the node names and add them to the environment variables..

Is there something easier, or should I just go with NODES_INCLUDE, which seems like the less painful option?

Also, when I specify the nodes, does that completely prevent them from being loaded and shown, or does it have no real effect?

1 Like

hello @mohamed3nan

NODES_INCLUDE - means only these nodes will be possible to use in any workflows (whitelist for loading nodes).
NODES_EXCLUDE - acts vice versa; these nodes won’t be possible to use in any workflows (blacklist for loading nodes).

I’m not aware of any options to customize the canvas, though

Hi @mohamed3nan

According to the official documentation, there isn’t an “easier” way to do this through the UI or via automatic configuration. The supported approach is using NODES_INCLUDE or NODES_EXCLUDE.

For your specific case (where you only want a small subset of nodes) NODES_INCLUDE is honestly your best bet. You explicitly list the node types you want to load, and everything else gets implicitly excluded. Here’s how it works in practice:

  • With NODES_EXCLUDE, the specified nodes aren’t loaded at all and won’t appear in the editor.
  • With NODES_INCLUDE, only the listed nodes are loaded, and everything else is completely omitted from the UI.

So yes, this actually has a real effect: nodes that aren’t included (or are explicitly excluded) simply aren’t loaded or shown in the canvas. There’s no UI-based shortcut right now — environment variables are the official way to handle this.

Unfortunately, to my knowledge, there isn’t a workaround beyond what’s currently documented.

Reference: