Skip to content

airflow dags clear: add --partition-start / --partition-end range flags #65921

Description

@Lee-W

Body

What

Allow airflow dags clear to clear a contiguous range of partitions in one invocation. Today reprocessing N hourly partitions after a schema change means N CLI invocations or clearing one at a time in the UI. Example: airflow dags clear my_dag --partition-start "2026-03-08T00" --partition-end "2026-03-14T23" should clear all 168 hourly partitions in that window.

Open question

Range semantics — inclusive both ends, or half-open? How does this work for non-temporal partition keys? How for composite keys (e.g. us|2026-03-10)?

Related

#58474

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Labels

area:CLIkind:featureFeature Requestskind:metaHigh-level information important to the community

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions