github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/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 <!-- This file is maintained within the docker/cli GitHub 8 repository at https://github.com/docker/cli/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # service rm 17 18 ```Markdown 19 Usage: docker service rm SERVICE [SERVICE...] 20 21 Remove one or more services 22 23 Aliases: 24 rm, remove 25 26 Options: 27 --help Print usage 28 ``` 29 30 ## Description 31 32 Removes the specified services from the swarm. This command has to be run 33 targeting a manager node. 34 35 ## Examples 36 37 Remove the `redis` service: 38 39 ```bash 40 $ docker service rm redis 41 42 redis 43 44 $ docker service ls 45 46 ID NAME MODE REPLICAS IMAGE 47 ``` 48 49 > **Warning**: Unlike `docker rm`, this command does not ask for confirmation 50 > before removing a running service. 51 52 ## Related commands 53 54 * [service create](service_create.md) 55 * [service inspect](service_inspect.md) 56 * [service logs](service_logs.md) 57 * [service ls](service_ls.md) 58 * [service ps](service_ps.md) 59 * [service rollback](service_rollback.md) 60 * [service scale](service_scale.md) 61 * [service update](service_update.md)