github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/docs/reference/commandline/service_rm.md (about) 1 --- 2 title: "service rm" 3 description: "The service rm command description and usage" 4 keywords: "service, rm" 5 --- 6 7 # service rm 8 9 ```Markdown 10 Usage: docker service rm SERVICE [SERVICE...] 11 12 Remove one or more services 13 14 Aliases: 15 rm, remove 16 17 Options: 18 --help Print usage 19 ``` 20 21 ## Description 22 23 Removes the specified services from the swarm. 24 25 > **Note** 26 > 27 > This is a cluster management command, and must be executed on a swarm 28 > manager node. To learn about managers and workers, refer to the 29 > [Swarm mode section](https://docs.docker.com/engine/swarm/) in the 30 > documentation. 31 32 ## Examples 33 34 Remove the `redis` service: 35 36 ```bash 37 $ docker service rm redis 38 39 redis 40 41 $ docker service ls 42 43 ID NAME MODE REPLICAS IMAGE 44 ``` 45 46 > **Warning** 47 > 48 > Unlike `docker rm`, this command does not ask for confirmation before removing 49 > a running service. 50 51 ## Related commands 52 53 * [service create](service_create.md) 54 * [service inspect](service_inspect.md) 55 * [service logs](service_logs.md) 56 * [service ls](service_ls.md) 57 * [service ps](service_ps.md) 58 * [service rollback](service_rollback.md) 59 * [service scale](service_scale.md) 60 * [service update](service_update.md)