# I am not able to exclude node from my self hosted n8n

**URL:** <https://community.n8n.io/t/i-am-not-able-to-exclude-node-from-my-self-hosted-n8n/157656>\
**Category:** Questions\
**Created:** [July 28, 2025, 1:26pm UTC](https://community.n8n.io/t/i-am-not-able-to-exclude-node-from-my-self-hosted-n8n/157656 "2025-07-28T13:26:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aryaman\_Gurjar](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aryaman_gurjar/32/104579_2.png) [@Aryaman\_Gurjar](https://community.n8n.io/u/Aryaman_Gurjar)\
**Post date:** [July 28, 2025, 1:26pm UTC](https://community.n8n.io/t/i-am-not-able-to-exclude-node-from-my-self-hosted-n8n/157656/1 "2025-07-28T13:26:01Z")

</div>

Hi Team, I am trying to follow this discussion([How to disable n8n nodes available by default? - #21 by abhilash](http://community.n8n.io/t/how-to-disable-n8n-nodes-available-by-default/18168/21)) to exclude some nodes from my self-hosted n8n.  
I added this secret in my aws secret manager  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/c/f/cf8256e4c8ce062195d8629a59d7f3a9eacf6ff9.png)

I export this env during my deployment but still it is not working for example I tried to exclude ElasticSearch node but I am not able to do it

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/a/0addd1e4704169751d0dc2da45b16710e9b3db2c.png)

How to do this

---

<div class="post-metadata">

**Author:** ![King\_Samuel\_David](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/king_samuel_david/32/83690_2.png) [@King\_Samuel\_David](https://community.n8n.io/u/King_Samuel_David)\
**Post date:** [July 28, 2025, 1:38pm UTC](https://community.n8n.io/t/i-am-not-able-to-exclude-node-from-my-self-hosted-n8n/157656/2 "2025-07-28T13:38:59Z")

</div>

maybe try like this @Aryaman_Gurjar

```auto
[\"n8n-nodes-base.executeCommand\", \"n8n-nodes-base.readWriteFile\"] 

```

this is how it appears in docs

> **[Nodes environment variables | n8n Docs](https://docs.n8n.io/hosting/configuration/environment-variables/nodes/#:~:text=Specify%20which%20nodes%20not%20to%20load.%20For%20example%2C%20to%20block%20nodes%20that%20can%20be%20a%20security%20risk%20if%20users%20aren%27t%20trustworthy%3A%20NODES_EXCLUDE%3A%20%22%5B%5C%22n8n%2Dnodes%2Dbase.executeCommand%5C%22%2C%20%5C%22n8n%2Dnodes%2Dbase.readWriteFile%5C%22%5D%22)**
>
> Environment variable to configure nodes management in self-hosted n8n instance.

Samuel

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [October 26, 2025, 1:39pm UTC](https://community.n8n.io/t/i-am-not-able-to-exclude-node-from-my-self-hosted-n8n/157656/3 "2025-10-26T13:39:31Z")

</div>

Closed on October 26, 2025, 1:39pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
