﻿---
title: exclude
description: If exclude is True, the filter will remove matches from the actionable list. If exclude is False, then only matches will be kept in the actionable list...
url: https://www.elastic.co/elastic/docs-builder/docs/2773/reference/elasticsearch/curator/fe_exclude
products:
  - Elasticsearch
  - Elasticsearch Curator
---

# exclude
<note>
  This setting is available in *all* filter types.
</note>

If `exclude` is `True`, the filter will remove matches from the actionable list. If `exclude` is `False`, then only matches will be kept in the actionable list.
The default value for this setting is different for each filter type.

## Examples

```yaml
- filtertype: opened
  exclude: True
```

This filter will result in only `closed` indices being in the actionable list.
```yaml
- filtertype: opened
  exclude: False
```

This filter will result in only `open` indices being in the actionable list.