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