github.com/portworx/docker@v1.12.1/docs/swarm/swarm-tutorial/delete-service.md (about) 1 <!--[metadata]> 2 +++ 3 title = "Delete the service" 4 description = "Remove the service from the swarm" 5 keywords = ["tutorial, cluster management, swarm, service"] 6 [menu.main] 7 identifier="swarm-tutorial-delete-service" 8 parent="swarm-tutorial" 9 weight=19 10 +++ 11 <![end-metadata]--> 12 13 # Delete the service running on the swarm 14 15 The remaining steps in the tutorial don't use the `helloworld` service, so now 16 you can delete the service from the swarm. 17 18 1. If you haven't already, open a terminal and ssh into the machine where you 19 run your manager node. For example, the tutorial uses a machine named 20 `manager1`. 21 22 2. Run `docker service rm helloworld` to remove the `helloworld` service. 23 24 ``` 25 $ docker service rm helloworld 26 27 helloworld 28 ``` 29 30 3. Run `docker service inspect <SERVICE-ID>` to verify that the swarm manager 31 removed the service. The CLI returns a message that the service is not found: 32 33 ``` 34 $ docker service inspect helloworld 35 [] 36 Error: no such service or task: helloworld 37 ``` 38 39 ## What's next? 40 41 In the next step of the tutorial, you set up a new service and apply a 42 [rolling update](rolling-update.md).