HCatalog
 

DELETE ddl/database/:db/table/:table

Description

Delete (drop) an HCatalog table.

URL

http://www.myserver.com/templeton/v1/ddl/database/:db/table/:table

Parameters

NameDescriptionRequired?Default
:db The database name Required None
:table The table name Required None
ifExists Hive 0.70 and later returns an error if the table specified does not exist, unless ifExists is set to true. Optional false
group The user group to use Optional None
permissions The permissions string to use. The format is "rwxrw-r-x". Optional None

Results

NameDescription
table The table name
database The database name

Example

Curl Command

% curl -s -X DELETE 'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table?user.name=ctdean'

JSON Output

{
 "table": "test_table",
 "database": "default"
}