- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- PartitionValues
- Try it!
Deletes partitions from a table.
HTTP request
POST https://biglake.googleapis.com/hive/v1alpha/{parent=projects/*/catalogs/*/databases/*/tables/*}/partitions:batchDelete
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. Reference to the table to which these partitions belong, in the format of projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}. |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"partitionValues": [
{
object ( |
| Fields | |
|---|---|
partitionValues[] |
Required. The list of partitions (identified by its values) to be deleted. A maximum of 900 partitions can be deleted in a batch. |
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/bigqueryhttps://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
PartitionValues
Represents the values of a partition.
| JSON representation |
|---|
{ "values": [ string ] } |
| Fields | |
|---|---|
values[] |
Required. The values of the partition keys, where each value corresponds to a specific partition key in the order in which the keys are defined. |