Skip to content

BatchDeletePartition

Source: src/AWS/Glue/BatchDeletePartition.ts

Runtime binding for glue:BatchDeletePartition.

Deletes up to 25 partitions of the bound Table in one call — the bulk variant of DeletePartition for retention sweeps. Per-partition failures come back in the response’s Errors list. The database/table names and catalog id are injected from the binding. Provide the implementation with Effect.provide(AWS.Glue.BatchDeletePartitionHttp).

// init
const batchDeletePartition = yield* AWS.Glue.BatchDeletePartition(table);
// runtime
const { Errors } = yield* batchDeletePartition({
PartitionsToDelete: expired.map((dt) => ({ Values: [dt] })),
});