How to Delete a Service in Windows Server [Using Command Prompt & Registry Editor]


Delete service windows server
XINSTALL BY CLICKING THE DOWNLOAD FILE
A message from our partner

For fixing Windows errors, we recommend Fortect:

Fortect will identify and deploy the correct fix for your Windows errors. Follow the 3 easy steps to get rid of Windows errors:

  • Download Fortect and install it on your PC
  • Launch the tool and Start scanning your PC for Windows errors
  • Right-click on Start Repair to deploy the right fix for each error encountered during the scan
Download Now Fortect has been downloaded by 0 readers this month, rated 4.6 on TrustPilot

Ever had a service in Windows Server that you no longer need and want to delete but keeps running in the background? It could be an old application that left its service behind, or maybe a test service that’s no longer relevant.

Deleting such unused services can help keep your server clean, reduce resource usage, and avoid unexpected errors. In this guide, we’ll walk you through different ways to safely delete a service in Windows Server.

Here are different methods to delete a service in Windows Server

Method 1: Delete a service in Windows Server using Command Prompt

  1. Press Win + R, type cmd, and press Ctrl + Shift + Enter to open Command Prompt as administrator.
  2. Type the following command:
    sc delete "ServiceName"
    Note: Replace ServiceName with the exact name of the service.
  3. Press Enter and wait for confirmation.
  4. Restart your server to finalize removal.

Method 2: Delete a service in Windows Server using Registry Editor

  1. Press Win + R, type regedit, and hit Enter.
  2. Navigate to:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. Find the folder matching your service name.
  4. Right-click it and select Delete.
  5. Restart your server for changes to take effect.

NOTE: Always back up your registry before making changes, as incorrect edits may cause system issues.

Old or broken services can slow down boot times, consume memory, and sometimes trigger errors. Cleaning them up ensures better server performance and fewer troubleshooting headaches.

Summing up

Deleting a service in Windows Server can help remove unused or problematic services that affect performance. Before doing so, check which users are logged in to avoid disrupting active sessions by following our guide on how to check who is logged in on Windows Server.

If the service is related to web hosting, you may want to check our guide on how to install IIS on Windows Server to ensure web services remain functional. For network-related services, understanding DNS setup is helpful, check our guide on setting up DNS in Windows Server for proper configuration.

FAQs

Can I disable a service instead of deleting it?

Yes. Use services.msc to disable a service if you just don’t want it running but may need it later.

What happens if I delete the wrong service?

Critical system services, if deleted, can break Windows Server. Always double-check before removing.

Is sc delete safe to use?

Yes, when used correctly. It’s the official method provided by Microsoft to remove services.

Can I delete services remotely on another server?

Yes, by running the sc command with the \ServerName parameter, provided you have admin rights.

More about the topics: windows server

Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

User forum

0 messages