# Delete translog

**URL:** <https://discuss.elastic.co/t/delete-translog/141485>\
**Category:** Elasticsearch\
**Created:** [July 25, 2018, 5:07am UTC](https://discuss.elastic.co/t/delete-translog/141485 "2018-07-25T05:07:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beatrice](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@Beatrice](https://discuss.elastic.co/u/Beatrice)\
**Post date:** [July 25, 2018, 5:07am UTC](https://discuss.elastic.co/t/delete-translog/141485/1 "2018-07-25T05:07:05Z")

</div>

Hi, I'm new to elasticsearch and I was having trouble with deleting translogs.  
I was trying to delete the translog files following this documentation: [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/index-modules-translog.html#corrupt-translog-truncation](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/index-modules-translog.html#corrupt-translog-truncation)  
and I tried running the following command on my Ubuntu system: `bin/elasticsearch-translog truncate -d /var/lib/elasticsearchdata/nodes/0/indices/OuW6ZqbQST-gwEnyo8huDA/0/translog/` , but I'm getting no such file or directory error.  
My second question is, will manually deleting ckp and tlog files in the translog folder do the trick as well?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 25, 2018, 5:24am UTC](https://discuss.elastic.co/t/delete-translog/141485/2 "2018-07-25T05:24:43Z")

</div>

> [@Beatrice](#):
>
> and I tried running the following command on my Ubuntu system: `bin/elasticsearch-translog truncate -d /var/lib/elasticsearchdata/nodes/0/indices/OuW6ZqbQST-gwEnyo8huDA/0/translog/` , but I'm getting no such file or directory error.

Why are you running that command, what lead you to there?

---

<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 22, 2018, 5:25am UTC](https://discuss.elastic.co/t/delete-translog/141485/3 "2018-08-22T05:25:02Z")

</div>

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