How do I manually delete a service? Windows manually deletes the residual service in the service list.

  

Inadvertently deletes the MongoDB service being used, and opens “services.msc” but finds that the residual service name cannot be deleted in the operation interface, resulting in re-establishing the service. Unable to succeed. In fact, using a simple command line can solve this problem, the operation method is as follows:

1, in the "run" " (Win+R) enter “services.msc”, open the service management. Unable to start MongoDB service, error message <; The system could not find the specified file. ”

2. Use the sc command to delete

in the "run" run” enter “CMD”, open the command line, run:

sc Delete MongoDB

The error is displayed "[SC] OpenService failed 5: & rdquo;, and denied access. It seems to be a permission issue.

“Run as administrator, ” command line, run the above command again, successfully deleted!

Copyright © Windows knowledge All Rights Reserved