Deletes a metadata table in Data Lake Formation (DLF) by name.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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

ParameterTypePositionRequiredExampleDescription
CatalogIdStringQueryNo1344371

The catalog ID of the metadatabase. Default value: the user ID of your Alibaba Cloud account.

DatabaseNameStringQueryNodatabase_test

The name of the metadatabase.

TableNameStringQueryNotest_table_20201223

The name of the metadata table.

RegionIdStringHostNocn-hangzhou

The ID of the region where DLF is activated.

Response parameters

ParameterTypeExampleDescription
CodeStringOK

The description of the status code.

MessageString.

The error message that is returned.

RequestIdStringB7F4B621-E41E-4C84-B97F-42B5380A32BB

The ID of the request.

SuccessBooleantrue

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"
}