CoderSathi
  • Tutorial
    • Java Tutorial
    • Swing Tutorial
    • JDBC Tutorial
    • Java String Tutorial
    • Servlet and JSP Tutorial
  • Mongo DB
  • AWS
  • DevOps
  • Linux
  • Git
Home > How to > How to remove service from systemd?

How to remove service from systemd?

Learn the concepts, implementation details, and practical steps with a clean developer-focused walkthrough.

Yuba Raj Kalathoki
By Yuba Raj Kalathoki
Last updated: July 1, 2026 · 2 min read · 0 Comments
Share: in X

Systemd is a widely used service manager in modern Linux. It simplifies starting, stopping, enabling, and disabling services. However, you may need to remove service from systemd at some point. This guide will walk you through the steps.

Table of Contents

  • Systemctl Stop Service
  • Systemctl Disable service
  • Systemctl Remove Service file
  • Reload the daemon
  • Clean up

Systemctl Stop Service

The first step to remove service from systemd is to stop the service. We can do this by using the systemctl stop command followed by the name of the service to stop it.

Example:

sudo systemctl stop <service-name>

This will stop the service from running on our system.

Systemctl Disable service

The next step is to disable the service. This will prevent it from starting up automatically when our system boots up. To do this, use the systemctl disable command followed by the name of the service to disable it.

Example:

sudo systemctl disable <service-name>

This will disable the service from starting up automatically.

Systemctl Remove Service file

After disabling the service, the next step is to remove the service file from the /etc/systemd/system directory. Because in most of the cases our service file will be inside /etc/systemd/system/ directory. Hence, use the rm command to remove the service file from the /etc/systemd/system directory.

Example:

sudo rm /etc/systemd/system/<service-name>

This should remove the service file from our system.

Reload the daemon

Use the systemctl daemon-reload command to reload the systemd daemon and remove the service compeletely.

Example:

sudo systemctl daemon-reload

Clean up

Finally, use the systemctl reset-failed command to remove any failed state entries for the service.

Example:

sudo systemctl reset-failed

After following the steps mentioned above it should remove the service from systemd.

Related Posts:

  • How to Solve “systemctl command not found” Error: A…
  • Command Line Arguments in Java
  • Floating point in Java
  • How to Use AWS CloudFront Signed URLs in Spring Boot?
  • MySQL Commands for Developers
  • Install and Set Up Java Development Environment
Tags:devopsubuntu
Was this article helpful?
← Previous ArticleHow to clear cache from Ubuntu?
Next Article →How To Start Linux Service Automatically At Start Up?

Leave a Comment Cancel reply

You must be logged in to post a comment.

Recent Posts

  • How to implement Passwordless Authentication in Spring Boot: A Step-by-Step Guide
  • How to Use AWS CloudFront Signed URLs in Spring Boot?
  • How to Fix SSH Agent Forwarding on macOS: The Ultimate Guide for Developers
  • How to Read AWS Secrets Manager in Spring Boot (Step-by-Step)
  • How to Fix “Public Key Retrieval is not allowed” MySQL JDBC Error
CoderSathi

Your go-to resource for Java, Spring Boot, Microservices, AWS, and modern development tutorials.

Linkedin

Quick Links

  • About
  • Contact

Popular Topics

  • Java
  • Spring Boot
  • AWS
  • DevOps
  • MongoDB
  • Linux
  • Git
  • How to
© 2026 CoderSathi. All rights reserved. Privacy Policy · Sitemap