original_docstring: You can use the DeleteQoSPolicy method to delete a QoS policy from the system.
docstring: You can use the DeleteQoSPolicy method to delete a QoS policy from the system.
docstring_tokens: You can use the DeleteQoSPolicy method to delete a QoS policy from the system .
code: def deleteqospolicy(ctx,
             # Mandatory main parameter
             qospolicyid):
      """You can use the DeleteQoSPolicy method to delete a QoS policy from the system."""
      """The QoS settings for all volumes created of modified with this policy are unaffected."""
  
      
  
      cli_utils.establish_connection(ctx)
      
      
  
      
  
      ctx.logger.info(""": """"""qospolicyid = """ + str(qospolicyid)+""";"""+"")
      try:
          _DeleteQoSPolicyResult = ctx.element.delete_qos_policy(qos_policy_id=qospolicyid)
      except common.ApiServerError as e:
          ctx.logger.error(e.message)
          exit()
      except BaseException as e:
          ctx.logger.error(e.__str__())
          exit()
      if ctx.json:
          print(simplejson.dumps(simplejson.loads(_DeleteQoSPolicyResult), indent=4))
          return
      else:
          cli_utils.print_result(_DeleteQoSPolicyResult, ctx.logger, as_json=ctx.json, as_pickle=ctx.pickle, depth=ctx.depth, filter_tree=ctx.filter_tree)
code_tokens: def deleteqospolicy ( ctx , qospolicyid ) : """The QoS settings for all volumes created of modified with this policy are unaffected.""" cli_utils . establish_connection ( ctx ) ctx . logger . info ( """: """ """qospolicyid = """ + str ( qospolicyid ) + """;""" + "" ) try : _DeleteQoSPolicyResult = ctx . element . delete_qos_policy ( qos_policy_id = qospolicyid ) except common . ApiServerError as e : ctx . logger . error ( e . message ) exit ( ) except BaseException as e : ctx . logger . error ( e . __str__ ( ) ) exit ( ) if ctx . json : print ( simplejson . dumps ( simplejson . loads ( _DeleteQoSPolicyResult ) , indent = 4 ) ) return else : cli_utils . print_result ( _DeleteQoSPolicyResult , ctx . logger , as_json = ctx . json , as_pickle = ctx . pickle , depth = ctx . depth , filter_tree = ctx . filter_tree )
short_docstring: You can use the DeleteQoSPolicy method to delete a QoS policy from the system.
short_docstring_tokens: You can use the DeleteQoSPolicy method to delete a QoS policy from the system .
comment: # Mandatory main parameter$SEP$"""You can use the DeleteQoSPolicy method to delete a QoS policy from the system."""$SEP$"""The QoS settings for all volumes created of modified with this policy are unaffected."""