docker service rm
|Remove one or more services
docker service rm SERVICE [SERVICE...]
docker service remove
Swarm This command works with the Swarm orchestrator.
Removes the specified services from the swarm.
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.
$ docker service rm redis
$ docker service ls
ID NAME MODE REPLICAS IMAGE
docker rm, this command does not ask for confirmation before removing a running service.