文档
测试

删除模型

DELETE
http://192.168.88.132:7070/kylin/api/models/test1_model2

接口描述

根据模型名称删除模型,{modelName}为选中的模型名称

请求头

参数名
类型
描述
必填
Authorization
string
示例:Basic QURNSU46S1lMSU4=
必填

响应参数

参数名
类型
描述
必填
code
string
示例:999
必填
data
object
示例:null
必填
msg
string
示例:Failed to delete model. Caused by: Model is referenced by Cube 'test123' , could not dropped
必填
stacktrace
string
示例:org.apache.kylin.rest.exception.InternalErrorException: Failed to delete model. Caused by: Model is referenced by Cube 'test123' , could not dropped at org.apache.kylin.rest.controller.ModelController.deleteModel(ModelController.java:178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at su...
必填
exception
string
示例:Failed to delete model. Caused by: Model is referenced by Cube 'test123' , could not dropped
必填
url
string
示例:http://192.168.88.132:7070/kylin/api/models/test1_model2
必填

说明 / 示例

根据返回值判断该模型是否能够被删除,如果model在被cube所使用,返回值会"msg": "Failed to delete model. Caused by: Model is referenced by Cube 'test123' , could not dropped" 成功删除,返回值为空