code: def delete_service(self, service: str):
          
          # Raise an exception if we are not a manager
          if not self._manager:
              raise RuntimeError('Services can only be deleted '
                                 'on swarm manager nodes')
  
          # Remove service
          self._api_client.remove_service(service)
docs: Removes/stops a docker service.
  
          Only the manager nodes can delete a service
  
          Args:
              service (string): Service name or ID