﻿---
title: delete_after
description: The default value of this setting is True.  After an index has been successfully shrunk, the source index will be deleted or preserved based on the value...
url: https://www.elastic.co/elastic/docs-builder/docs/2541/reference/elasticsearch/curator/option_delete_after
---

# delete_after
<note>
  This setting is only used by the [shrink](https://www.elastic.co/elastic/docs-builder/docs/2541/reference/elasticsearch/curator/shrink) action.
</note>

```yaml
action: shrink
description: >-
  Shrink selected indices on the node with the most available space.
  Delete source index after successful shrink.
options:
  shrink_node: DETERMINISTIC
  delete_after: True
filters:
  - filtertype: ...
```

The default value of this setting is `True`.  After an index has been successfully shrunk, the source index will be deleted or preserved based on the value of this setting.