{"base_path":null,"components":null,"consumes":"","definitions":{"ErrorMessage":{"description":"失败时返回的错误对象","properties":{"common_error_code":{"description":"CBC公共错误码","example":"CMM.1008","maxLength":36,"minLength":1,"type":"string"},"error_code":{"description":"错误码","example":"lakeformation.00010003","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","example":"failed","maxLength":4096,"minLength":2,"type":"string"},"solution_msg":{"description":"解决方案描述","example":"Please use correct instance id.","maxLength":4096,"minLength":2,"type":"string"}},"required":["error_code","error_msg"],"type":"object"}},"description":null,"group_id":"bf0ce8340d8b4439b53683607ef0d87f","host":"lakeformation.cn-north-4.myhuaweicloud.com","id":"27b6834a13994938a2dedcf2863691ac","info_version":"v1","method":"delete","name":"DeleteDatabase","parameters":{},"paths":{"/v1/{project_id}/instances/{instance_id}/catalogs/{catalog_name}/databases/{database_name}":{"delete":{"deprecated":false,"description":"删除指定数据库,catalog的默认数据库不允许删除。\ncascade: 指定为true时,删除数据库下的表;指定为false时,只能删除空的数据库\ndelete_data: 指定为true时,级联删除会将表的数据放入回收站;指定为false时,不删除表数据\n删除数据库后不支持恢复数据库下的事务表。","operationId":"DeleteDatabase","parameters":[{"description":"租户token","in":"header","items":{"type":"string"},"name":"X-Auth-Token","required":true,"type":"array"},{"description":"项目id","in":"path","maxLength":64,"minLength":1,"name":"project_id","pattern":"^[a-z0-9]+$","required":true,"type":"string"},{"description":"实例Id","in":"path","name":"instance_id","pattern":"^[a-zA-Z0-9-]{36}$","required":true,"type":"string"},{"description":"catalog名字","in":"path","maxLength":256,"minLength":1,"name":"catalog_name","pattern":"^[a-zA-Z_0-9]+$","required":true,"type":"string"},{"description":"数据库名","in":"path","maxLength":128,"minLength":1,"name":"database_name","pattern":"^[a-zA-Z0-9\\u4e00-\\u9fa5_]*$","required":true,"type":"string"},{"default":false,"description":"是否删除数据库路径下的数据","in":"query","name":"delete_data","required":false,"type":"boolean","x-annotations":["@UsNoConstraint(reason = \"Boolean类型无需校验\")"],"x-imports":["com.huawei.us.validator.annotation.UsNoConstraint;"]},{"default":false,"description":"是否级联删除数据库下的表、分区以及函数","in":"query","name":"cascade","required":false,"type":"boolean","x-annotations":["@UsNoConstraint(reason = \"Boolean类型无需校验\")"],"x-imports":["com.huawei.us.validator.annotation.UsNoConstraint;"]}],"produces":["application/json;charset=UTF-8"],"responses":{"200":{"description":"OK"},"204":{"description":"No Content"},"400":{"description":"Bad Request","examples":{"application/json":{"error_code":"common.01000001","error_msg":"failed to read http request, please check your input, code: 400, reason: Type mismatch., cause: TypeMismatchException"}},"schema":{"$ref":"#/definitions/ErrorMessage"}},"401":{"description":"Unauthorized","examples":{"application/json":"{\n \"error_code\": 'APIG.1002',\n \"error_msg\": 'Incorrect token or token resolution failed'\n}"}},"403":{"description":"Forbidden","examples":{"application/json":{"error":{"code":"403","message":"X-Auth-Token is invalid in the request","title":"Forbidden"},"error_code":"403","error_msg":"X-Auth-Token is invalid in the request","title":"Forbidden"}}},"404":{"description":"Not Found","examples":{"application/json":{"error_code":"common.01000001","error_msg":"response status exception, code: 404"}},"schema":{"$ref":"#/definitions/ErrorMessage"}},"408":{"description":"Request Timeout","examples":{"application/json":{"error_code":"common.00000408","error_msg":"timeout exception occurred"}}},"500":{"description":"Internal Server Error","examples":{"application/json":{"error_code":"common.00000500","error_msg":"internal error"}},"schema":{"$ref":"#/definitions/ErrorMessage"}}},"summary":"删除数据库","tags":["Database"],"x-apiexplorer-hide":"N","x-cts-meta-anno":{"isAsyncApi":"false","resourceType":"Database","traceName":"deleteDatabase"},"x-is-registered":"Y","x-request-examples-url-1":"/v1/{project_id}/instances/{instance_id}/catalogs/{catalog_name}/databases/{database_name}","x-support-sdk":"Y"}}},"product_short":"LakeFormation","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"删除数据库","tags":"数据库管理","uri":null,"version":"2.0"}