code: def delete_all_services(self):
          
          # Raise an exception if we are not a manager
          if not self._manager:
              raise RuntimeError('Services can only be deleted '
                                 'on swarm manager nodes')
  
          service_list = self.get_service_list()
          for services in service_list:
              # Remove all the services
              self._api_client.remove_service(services)
docs: Removes/stops a service.
  
          Only the manager nodes can delete a service