# Potential data deletion issue when using the offline plugin pack command

**URL:** <https://discuss.elastic.co/t/potential-data-deletion-issue-when-using-the-offline-plugin-pack-command/80714>\
**Category:** Logstash\
**Created:** [March 30, 2017, 3:59pm UTC](https://discuss.elastic.co/t/potential-data-deletion-issue-when-using-the-offline-plugin-pack-command/80714 "2017-03-30T15:59:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vittorio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vittorio/32/18171_2.png) [@Vittorio](https://discuss.elastic.co/u/Vittorio)\
**Post date:** [March 30, 2017, 3:59pm UTC](https://discuss.elastic.co/t/potential-data-deletion-issue-when-using-the-offline-plugin-pack-command/80714/1 "2017-03-30T15:59:40Z")

</div>

this for let everybody know how beautiful logstash is !

running this command

`bin/logstash-plugin prepare-offline-pack --output OUTPUT [PLUGINS]`

and specify as output =\> /home/vittorio , the result is just amazing.... everything deleted.

And I have to thank the fact that the command failed, otherwise my entire pc would have been a binary file 🙂

Everybody who wants to run this command, be careful because it will delete the specified directory and then write the output and yes, is like doing the magic and awesome `rm -rf`

thanks again Logstash, I love you.

always yours,  
Vittorio

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [March 30, 2017, 7:12pm UTC](https://discuss.elastic.co/t/potential-data-deletion-issue-when-using-the-offline-plugin-pack-command/80714/2 "2017-03-30T19:12:10Z")

</div>

Thanks Vittoro, this is a pretty bad bug.

I' have created [https://github.com/elastic/logstash/pull/6861/](https://github.com/elastic/logstash/pull/6861/) and will do releases for that asap.

really sorry for the bad time ☹

---

<div class="post-metadata">

**Author:** ![suyograo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suyograo/32/44898_2.png) [@suyograo](https://discuss.elastic.co/u/suyograo)\
**Post date:** [March 30, 2017, 8:11pm UTC](https://discuss.elastic.co/t/potential-data-deletion-issue-when-using-the-offline-plugin-pack-command/80714/3 "2017-03-30T20:11:08Z")

</div>

This issue is being tracked here: [https://github.com/elastic/logstash/issues/6862](https://github.com/elastic/logstash/issues/6862)

---

<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:** [April 27, 2017, 8:11pm UTC](https://discuss.elastic.co/t/potential-data-deletion-issue-when-using-the-offline-plugin-pack-command/80714/4 "2017-04-27T20:11:56Z")

</div>

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