public TSStatus dropModel(String modelId) {
    DropModelProcedure procedure = new DropModelProcedure(modelId);
    executor.submitProcedure(procedure);
    TSStatus status = waitingProcedureFinished(procedure);
    if (status.getCode() == TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
      return status;
    } else {
      return new TSStatus(TSStatusCode.DROP_MODEL_ERROR.getStatusCode())
          .setMessage(status.getMessage());
    }
  }
Generate {@link DropTriggerProcedure} and wait until it finished.

@return {@link TSStatusCode#SUCCESS_STATUS} if the trigger has been dropped successfully,
    {@link TSStatusCode#DROP_TRIGGER_ERROR} otherwise
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java