# How can I close all the indices except the safeguard index for elasticsearch?

**URL:** https://forum.search-guard.com/t/how-can-i-close-all-the-indices-except-the-safeguard-index-for-elasticsearch/835
**Category:** Search Guard
**Created:** [March 12, 2018, 7:11pm UTC](https://forum.search-guard.com/t/how-can-i-close-all-the-indices-except-the-safeguard-index-for-elasticsearch/835 "2018-03-12T19:11:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![K11](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@K11](https://forum.search-guard.com/u/K11)
#### Post date: [March 12, 2018, 7:11pm UTC](https://forum.search-guard.com/t/how-can-i-close-all-the-indices-except-the-safeguard-index-for-elasticsearch/835/1 "2018-03-12T19:11:44Z")

</div>

When asking questions, please provide the following information:

- Search Guard and Elasticsearch version

- Installed and used enterprise modules, if any

- JVM version and operating system version

- Search Guard configuration files

- Elasticsearch log messages on debug level

- Other installed Elasticsearch or Kibana plugins, if any
