# Unable to perform insert or delete action in elasticsearch

**URL:** <https://discuss.elastic.co/t/unable-to-perform-insert-or-delete-action-in-elasticsearch/214024>\
**Category:** Elasticsearch\
**Created:** [January 7, 2020, 10:22am UTC](https://discuss.elastic.co/t/unable-to-perform-insert-or-delete-action-in-elasticsearch/214024 "2020-01-07T10:22:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![swati\_dupare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swati_dupare/32/56985_2.png) [@swati\_dupare](https://discuss.elastic.co/u/swati_dupare)\
**Post date:** [January 7, 2020, 10:22am UTC](https://discuss.elastic.co/t/unable-to-perform-insert-or-delete-action-in-elasticsearch/214024/1 "2020-01-07T10:22:24Z")

</div>

Hi,

I am getting below error when I am trying to insert or delete data from elasticsearch :  
index [index\_name] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)

Thanks

---

<div class="post-metadata">

**Author:** ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)\
**Post date:** [January 7, 2020, 11:31am UTC](https://discuss.elastic.co/t/unable-to-perform-insert-or-delete-action-in-elasticsearch/214024/2 "2020-01-07T11:31:37Z")

</div>

Hi @swati_dupare,

I think this is caused by running out of disk space. For recent Elasticsearch versions (7.4+), the block will be removed automatically when disk space issue has been cleared.

You should still be able to delete indices to free up space (if you have some you do not need). You can also add nodes to increase disk space or increase the size of the underlying volumes.

---

<div class="post-metadata">

**Author:** ![swati\_dupare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swati_dupare/32/56985_2.png) [@swati\_dupare](https://discuss.elastic.co/u/swati_dupare)\
**Post date:** [January 7, 2020, 2:12pm UTC](https://discuss.elastic.co/t/unable-to-perform-insert-or-delete-action-in-elasticsearch/214024/3 "2020-01-07T14:12:05Z")

</div>

How can I add nodes to increase disk space or increase the size of the underlying volumes

---

<div class="post-metadata">

**Author:** ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)\
**Post date:** [January 7, 2020, 6:20pm UTC](https://discuss.elastic.co/t/unable-to-perform-insert-or-delete-action-in-elasticsearch/214024/4 "2020-01-07T18:20:11Z")

</div>

Hi @swati_dupare,

this very much depends on how you are running Elasticsearch.

If you are trying this out on [ESS](https://cloud.elastic.co), you can use the cloud console to increase instance size.

If you have a single node deployment, there may be multiple steps in adding a node, which also depends on the Elasticsearch version. First of all, you need to ensure the node passes the production [bootstrap checks](https://www.elastic.co/guide/en/elasticsearch/reference/7.5/bootstrap-checks.html) and think about security (since you will likely be opening up the node for external communication).

If you run your own deployment on your own hardware, your host administrators should be able to help expand the volumes (if possible).

Can you add some context to what kind of deployment you have (nodes, size, hosted vs cloud etc.)?

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [January 7, 2020, 6:25pm UTC](https://discuss.elastic.co/t/unable-to-perform-insert-or-delete-action-in-elasticsearch/214024/5 "2020-01-07T18:25:25Z")

</div>

just side note:

once you add the space (either on local node or add new node) you must have to do this in order to enable everything back. if it is not fixed automatically as Henning said.

PUT \_all/\_settings  
{  
"index.blocks.read\_only\_allow\_delete": null  
}

---

<div class="post-metadata">

**Author:** ![swati\_dupare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swati_dupare/32/56985_2.png) [@swati\_dupare](https://discuss.elastic.co/u/swati_dupare)\
**Post date:** [January 8, 2020, 7:32am UTC](https://discuss.elastic.co/t/unable-to-perform-insert-or-delete-action-in-elasticsearch/214024/6 "2020-01-08T07:32:10Z")

</div>

Thanks for reply.

I think because of elasticsearch logs my disk space is full.  
Do you have any idea about how to delete logs from elasticsearch periodically or  
How can I delete old logs in elasticsearch came from logstash

---

<div class="post-metadata">

**Author:** ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)\
**Post date:** [January 8, 2020, 9:44am UTC](https://discuss.elastic.co/t/unable-to-perform-insert-or-delete-action-in-elasticsearch/214024/7 "2020-01-08T09:44:28Z")

</div>

Hi @swati_dupare,

when you say elasticsearch logs, do you mean the elasticsearch log file or log data ingested into elasticsearch?

Inside Elasticsearch, going forward, you can use [Index LIfecycle Management] ([https://www.elastic.co/guide/en/elasticsearch/reference/7.5/index-lifecycle-management.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.5/index-lifecycle-management.html)) to control the retention of log data.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 5, 2020, 9:44am UTC](https://discuss.elastic.co/t/unable-to-perform-insert-or-delete-action-in-elasticsearch/214024/8 "2020-02-05T09:44:36Z")

</div>

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