Skip to main content

Drop partition

DELETE 

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

Drops a partition and reports whether a partition was dropped. When purge is true, the partition 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

    partition stringrequired

    The name of the partition

Query Parameters

    purge boolean

    When true, removes the partition data completely, skipping the trash. Support depends on the catalog provider; a table that does not support purging partitions, including an external table, returns 501.

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...