# How to uninstall logstash service in windows?

**URL:** <https://discuss.elastic.co/t/how-to-uninstall-logstash-service-in-windows/304740>\
**Category:** Logstash\
**Created:** [May 15, 2022, 5:27am UTC](https://discuss.elastic.co/t/how-to-uninstall-logstash-service-in-windows/304740 "2022-05-15T05:27:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jisha](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jisha](https://discuss.elastic.co/u/jisha)\
**Post date:** [May 15, 2022, 5:27am UTC](https://discuss.elastic.co/t/how-to-uninstall-logstash-service-in-windows/304740/1 "2022-05-15T05:27:23Z")

</div>

I want to know how to uninstall Logstash in the windows server? someone please help me with the appropriate command.

---

<div class="post-metadata">

**Author:** ![sudhagar\_ramesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sudhagar_ramesh/32/105673_2.png) [@sudhagar\_ramesh](https://discuss.elastic.co/u/sudhagar_ramesh)\
**Post date:** [May 15, 2022, 5:59am UTC](https://discuss.elastic.co/t/how-to-uninstall-logstash-service-in-windows/304740/2 "2022-05-15T05:59:47Z")

</div>

Hello @jisha

if the logstash installation is done via nssm then,  
Check if the Logstash setup is running as a service. (Go to run -- services.msc -- Look for service name "logstash" ). if found then stop the service and using nssm delete the service for the same. (applies only if you install the logstash using nssm).

if you can't find the logstash in service, then the logstash installation is manual.  
Thus, check in environmental variables whether any logstash related variables have been set and unset for the same.  
Delete the logstash folder where you downloaded as a final step

For More Information:

> **[Alibaba Cloud Help Center - Cloud Definition and Explanation of Cloud Based...](https://partners-intl.aliyun.com/help/en/log-service/latest/configure-logstash-as-a-windows-service)**
>
> Learn from Alibaba Cloud experts about cloud solutions - cloud computing, storage and other cloud services at the official Alibaba Cloud Help Center.

> **[Running Logstash on Windows | Logstash Reference \[8.2\] | Elastic](https://www.elastic.co/guide/en/logstash/current/running-logstash-windows.html)**

---

<div class="post-metadata">

**Author:** ![jisha](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jisha](https://discuss.elastic.co/u/jisha)\
**Post date:** [May 15, 2022, 6:31am UTC](https://discuss.elastic.co/t/how-to-uninstall-logstash-service-in-windows/304740/3 "2022-05-15T06:31:42Z")

</div>

@sudhagar_ramesh thankyou it was really helpful.

---

<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:** [June 12, 2022, 6:32am UTC](https://discuss.elastic.co/t/how-to-uninstall-logstash-service-in-windows/304740/4 "2022-06-12T06:32:26Z")

</div>

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