command: docker service rm
aliases: docker service rm, docker service remove
short: Remove one or more services
long: |-
    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](/engine/swarm/) in the
    > documentation.
usage: docker service rm SERVICE [SERVICE...]
pname: docker service
plink: docker_service.yaml
inherited_options:
    - option: help
      value_type: bool
      default_value: "false"
      description: Print usage
      deprecated: false
      hidden: true
      experimental: false
      experimentalcli: false
      kubernetes: false
      swarm: false
examples: |-
    Remove the `redis` service:

    ```console
    $ 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.
deprecated: false
hidden: false
min_api_version: "1.24"
experimental: false
experimentalcli: false
kubernetes: false
swarm: true

