code: private String destroyAs(String[] args) throws Exception {
          if (args.length < 4) {
              return M3UAOAMMessages.INVALID_COMMAND;
          }
  
          String asName = args[3];
          if (asName == null) {
              return M3UAOAMMessages.INVALID_COMMAND;
          }
  
          String m3uaStackName = null;
  
          if (args.length > 4) {
              if (!args[4].equals("stackname")) {
                  return M3UAOAMMessages.INVALID_COMMAND;
              }
  
              m3uaStackName = args[5];
              M3UAManagementImpl m3uaManagementtmp = this.m3uaManagements.get(m3uaStackName);
  
              if (m3uaManagementtmp == null) {
                  return String.format(M3UAOAMMessages.NO_M3UA_MANAGEMENT_BEAN_FOR_NAME, m3uaStackName);
              }
  
              this.m3uaManagement = m3uaManagementtmp;
          } else {
              this.setDefaultValue();
          }
  
          AsImpl asImpl = this.m3uaManagement.destroyAs(asName);
  
          return String.format(M3UAOAMMessages.DESTROY_AS_SUCESSFULL, asName, this.m3uaManagement.getName());
      }
docs: m3ua as destroy <as-name> stackname <stack-name>
  
  @param args
  @return
  @throws Exception