# Deleting Logs

**URL:** <https://discuss.elastic.co/t/deleting-logs/140874>\
**Category:** Kibana\
**Created:** [July 20, 2018, 10:42am UTC](https://discuss.elastic.co/t/deleting-logs/140874 "2018-07-20T10:42:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcos\_Felix](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcos_felix/32/32486_2.png) [@Marcos\_Felix](https://discuss.elastic.co/u/Marcos_Felix)\
**Post date:** [July 20, 2018, 10:42am UTC](https://discuss.elastic.co/t/deleting-logs/140874/1 "2018-07-20T10:42:55Z")

</div>

Hello,  
I have deleted many logs before, but for some reason now the logs aren't getting deleted.  
I am using the following command:

`PowerShell.exe Invoke-RestMethod -Method Delete http://IP:9200/logstash-*`

but for some reason its not working.  
I am doing this because I need memory. I already cleaned my /dev/sda1 and allocated memory to it:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/3/530e19cda715bd2099c28d78a073da2fdb7ea3fd.png)  
so clearly I have space  
This is how it looks on kibana:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c446d4b2689b7705f0d5d0a3ba7468463c92ede7.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c4c36721d23395590fc3a2280e2859d5a9186f16.png)

Any clues?

Edit#1: I used this command instead:

`Invoke-WebRequest -Uri 'http://IP:9200/users/' -Method Delete`

And it didn't work, but then I decided to delete .monitoring and that seemed to work. it is all cleared now

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [July 27, 2018, 2:44pm UTC](https://discuss.elastic.co/t/deleting-logs/140874/2 "2018-07-27T14:44:36Z")

</div>

Were you getting any response from ES from that request that failed? It usually offers some clues why it didn't work.

---

<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:** [August 24, 2018, 2:44pm UTC](https://discuss.elastic.co/t/deleting-logs/140874/3 "2018-08-24T14:44:39Z")

</div>

Closed on August 24, 2018, 2:44pm UTC

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