private void deleteEncryptionKey(String[] params) throws Exception {
    CommandLine args = parseCommandArgs(DELETE_KEY_OPTIONS, params);

    String keyName = args.getOptionValue("keyName");
    try {
      encryptionShim.deleteKey(keyName);
    } catch (IOException e) {
      throw new Exception("Cannot delete encryption key: " + e.getMessage());
    }

    writeTestOutput("Encryption key deleted: '" + keyName + "'");
  }
Deletes an encryption key using the parameters passed through the 'delete_key' action.

@param params Parameters passed to the 'delete_key' command action.
@throws Exception If key deletion failed.
ql/src/java/org/apache/hadoop/hive/ql/processors/CryptoProcessor.java