# \[Help!\] How can I exclude any folder anywhere where the name contains 'xyz'

**URL:** https://forum.syncthing.net/t/help-how-can-i-exclude-any-folder-anywhere-where-the-name-contains-xyz/11422
**Category:** Support
**Created:** [March 25, 2018, 3:32pm UTC](https://forum.syncthing.net/t/help-how-can-i-exclude-any-folder-anywhere-where-the-name-contains-xyz/11422 "2018-03-25T15:32:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ManasN](https://forum.syncthing.net/user_avatar/forum.syncthing.net/manasn/32/4725_2.png) [@ManasN](https://forum.syncthing.net/u/ManasN)
#### Post date: [March 25, 2018, 3:32pm UTC](https://forum.syncthing.net/t/help-how-can-i-exclude-any-folder-anywhere-where-the-name-contains-xyz/11422/1 "2018-03-25T15:32:47Z")

</div>

I am syncing several projects which have these obnoxious ‘sessions’ folder in them. There are many such projects and location of this ‘sessions’ folder varies.

How can I tell Syncthing via exclude that “please ignore all folders named ‘sessions’ regardless of where they fall into my Sync folder” ?

thanks.

---

<div class="post-metadata">

### Author: ![kluppy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/kluppy/32/4197_2.png) [@kluppy](https://forum.syncthing.net/u/kluppy)
#### Post date: [March 25, 2018, 3:41pm UTC](https://forum.syncthing.net/t/help-how-can-i-exclude-any-folder-anywhere-where-the-name-contains-xyz/11422/2 "2018-03-25T15:41:15Z")

</div>

`**/xyz` should do it. [https://docs.syncthing.net/users/ignoring.html](https://docs.syncthing.net/users/ignoring.html)

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [March 25, 2018, 3:55pm UTC](https://forum.syncthing.net/t/help-how-can-i-exclude-any-folder-anywhere-where-the-name-contains-xyz/11422/3 "2018-03-25T15:55:20Z")

</div>

Just

`sessions`

should do.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [April 24, 2018, 3:55pm UTC](https://forum.syncthing.net/t/help-how-can-i-exclude-any-folder-anywhere-where-the-name-contains-xyz/11422/4 "2018-04-24T15:55:28Z")

</div>

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