Skip to main content

Drop table

DELETE 

/metalakes/:metalake/catalogs/:catalog/schemas/:schema/tables/:table

Drops a table and reports whether a table was dropped. When purge is true, the table's data is also removed completely, skipping the trash.

Sign in with a bearer token or a local user's password; see Authentication.

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    catalog stringrequired

    The name of the catalog

    schema stringrequired

    The name of the schema

    table stringrequired

    The name of the table

Query Parameters

    purge boolean

    When true, removes the table's data completely along with its metadata, skipping the trash. Catalogs that do not support purging, and external tables, reject the request.

Responses​

Whether the object was dropped. dropped is false when the object did not exist or, for statistics, when none of the named statistics existed.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    dropped boolean

    Whether the drop operation was successful

Loading...