parameters: (self,
                      service_name: str,
                      force: bool = False)
return_statement: return HandleCommandResult(stdout=completion.result_str())
docstring: Remove a service
docstring_summary: Remove a service
docstring_tokens: Remove a service
function: def _service_rm(self,
                      service_name: str,
                      force: bool = False) -> HandleCommandResult:
          """Remove a service"""
          if service_name in ['mon', 'mgr'] and not force:
              raise OrchestratorError('The mon and mgr services cannot be removed')
          completion = self.remove_service(service_name, force=force)
          raise_if_exception(completion)
          return HandleCommandResult(stdout=completion.result_str())
function_tokens: def _service_rm ( self , service_name : str , force : bool = False ) -> HandleCommandResult : if service_name in [ 'mon' , 'mgr' ] and not force : raise OrchestratorError ( 'The mon and mgr services cannot be removed' ) completion = self . remove_service ( service_name , force = force ) raise_if_exception ( completion ) return HandleCommandResult ( stdout = completion . result_str ( ) )