github.com/kobeld/docker@v1.12.0-rc1/docs/swarm/swarm-tutorial/delete-service.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "Delete the service"
     4  description = "Remove the service on 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  advisory = "rc"
    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      helloworld
    28      ```
    29  
    30  3. Run `docker service inspect <SERVICE-ID>` to veriy that Swarm removed the
    31  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 and apply a
    42  [rolling update](rolling-update.md).
    43  
    44  <p style="margin-bottom:300px">&nbsp;</p>