@Override
    public int execute() throws Exception {
      int exitCode;
      List<String> args = new ArrayList<>();

      args.add("delete");
      args.add(alias);
      if (!interactive) {
        args.add("-f");
      }

      String[] toolArgs = args.toArray(new String[args.size()]);

      exitCode = ToolRunner.run(getConf(), new CredentialShell(), toolArgs);

      return exitCode;
    }
Deletes the specified alias. Prompts for user confirmation
if -f option is not specified.
@return
@throws Exception
ambari-server/src/main/java/org/apache/ambari/server/credentialapi/CredentialUtil.java