Deletes a metadata table in Data Lake Formation (DLF) by name.
Debugging
Request headers
This operation uses only common request headers. For more information, see Common request parameters.
Request syntax
DELETE /api/metastore/catalogs/databases/tables
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
CatalogId | String | Query | No | 1344371 | The catalog ID of the metadatabase. Default value: the user ID of your Alibaba Cloud account. |
DatabaseName | String | Query | No | database_test | The name of the metadatabase. |
TableName | String | Query | No | test_table_20201223 | The name of the metadata table. |
RegionId | String | Host | No | cn-hangzhou | The ID of the region where DLF is activated. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | OK | The description of the status code. |
Message | String | . | The error message that is returned. |
RequestId | String | B7F4B621-E41E-4C84-B97F-42B5380A32BB | The ID of the request. |
Success | Boolean | true | Indicates whether the call was successful. |
Error codes
NoSuchObject: The specified metadata table does not exist.
InternalError: An internal error has occurred. Troubleshoot the error based on the error message that is returned.
Examples
Sample requests
DELETE /api/metastore/catalogs/databases/tables HTTP/1.1
{
"TableName":"test_table_20201223",
"DatabaseName":"database_test",
"RegionId":"cn-hangzhou",
"CatalogId":"1344371"
}
Sample success responses
JSON
format
{
"Success": true,
"Code": "OK",
"Message": "",
"HttpStatusCode": 200,
"RequestId": "B7F4B621-E41E-4C84-B97F-42B5380A32BB"
}