@Override
  public int execute() throws HiveException {
    try {
      context.getDb().dropDataConnector(desc.getConnectorName(), desc.getIfExists());
    } catch (NoSuchObjectException ex) {
      throw new HiveException(ex, ErrorMsg.DATACONNECTOR_NOT_EXISTS, desc.getConnectorName());
    }

    return 0;
  }
Operation process of dropping a data connector.
ql/src/java/org/apache/hadoop/hive/ql/ddl/dataconnector/drop/DropDataConnectorOperation.java