Deletes a table.

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 parameters

Parameter Type Required Example Description
DbName String Yes db001

The name of the database to which the table that you want to delete belongs.

TableName String Yes tbl001

The name of the table that you want to delete.

Response parameters

Parameter Type Example Description
Code String NO_SUCH_OBJECT

The error code returned.

Data Boolean false

Indicates whether the table is deleted.

Message String No such table: db001.tbl001

The error message returned.

RequestId String 9BEAC206-0795-4DE3-B1FD-964BEF432B23

The ID of the request.

Success Boolean false

Indicates whether the request is successful.

Examples

Sample requests

http(s)://[Endpoint]/?TableName=tbl001
&DbName=db001
&<Common request parameters>

Sample success responses

XML format

<Message>No such table: db001.tbl001</Message>
<RequestId>9BEAC206-0795-4DE3-B1FD-964BEF432B23</RequestId>
<Data>false</Data>
<Code>NO_SUCH_OBJECT</Code>
<Success>false</Success>

JSON format

{
    "Message": "No such table: db001.tbl001",
    "RequestId": "9BEAC206-0795-4DE3-B1FD-964BEF432B23",
    "Data": "false",
    "Code": "NO_SUCH_OBJECT",
    "Success": "false"
}

Error codes

For a list of error codes, visit the API Error Center.