docker service rm  Remove one or more services Swarm This command works with the Swarm orchestrator. Usage $ docker service rm SERVICE [SERVICE...]
 Description Removes the specified services from the swarm.  Note This is a cluster management command, and must be executed on a swarm manager node. To learn about managers and workers, refer to the Swarm mode section in the documentation.  For example uses of this command, refer to the examples section below. Examples Remove the redis service: $ docker service rm redis

redis

$ docker service ls

ID  NAME  MODE  REPLICAS  IMAGE
  Warning Unlike docker rm, this command does not ask for confirmation before removing a running service.  Parent command    Command Description     docker service Manage services    Related commands    Command Description     docker service create Create a new service   docker service inspect Display detailed information on one or more services   docker service logs Fetch the logs of a service or task   docker service ls List services   docker service ps List the tasks of one or more services   docker service rm Remove one or more services   docker service rollback Revert changes to a service’s configuration   docker service scale Scale one or multiple replicated services   docker service update Update a service    

    
{'path': 'public/docs/docker/engine/reference/commandline/service_rm/index.html', 'source': 'DevDocs.IO'}