You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
skip_archive should actually skip archive in db clean command #42003
Currently the delete process uses the archive table in the process of deletion. But we should refactor this so it doesn't need this and actually not create the archive table at all when user specifies this option.
The issue is when you are deleting a lot of rows, particularly if you have a low statement timeout, you may hit errors.
Committer
I acknowledge that I am a maintainer/committer of the Apache Airflow project.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
Hi @jinoo7099 , I saw that #67187 was closed. Are you planning to continue or reopen it? If not, I’d be happy to pick up #42003 and implement it against current main.
Plan: when skip_archive is set, airflow db clean will delete the matching rows directly instead of first copying them into an _airflow_deleted__* table and dropping it. The same filters, keep-last logic, batching and skip_if_referenced behaviour will stay. I'll add tests that check no archive table is created and that the right rows are deleted.
Activity
phanikumv commentedon Sep 4, 2024
cc @prabhusneha
pratik-m commentedon Sep 6, 2024
Hi @phanikumv - can you pls assign this issue to me? I'd like to work on this.
VETREA commentedon Sep 10, 2024
@phanikumv
can i work on this issue
phanikumv commentedon Sep 11, 2024
@VETREA you might want to collaborate with @pratik-m
VETREA commentedon Sep 12, 2024
@pratik-m
can i work with you on this same issue
refactored `_do_delete` separating archival and deletion apache#42003
refactored to handle deletes for correctly apache#42003
widewing commentedon Mar 11, 2025
@pratik-m are you still working on this issue? the related PR is closed.
SeleniumK commentedon Feb 28, 2026
Bumping this thread -- Also encountering the issue that '--skip-archive' does not skip writing archive tables
potiuk commentedon Mar 2, 2026
@pratik-m We are unassigning you from this issue as part of our updated assignment policy.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
rohankumardubey commentedon Sep 4, 2026
Hi @jinoo7099 , I saw that #67187 was closed. Are you planning to continue or reopen it? If not, I’d be happy to pick up #42003 and implement it against current
main.cc: @potiuk
sshari94 commentedon Oct 22, 2026
Hi, I'd like to work on this if no one else is.
Plan: when
skip_archiveis set,airflow db cleanwill delete the matching rows directly instead of first copying them into an_airflow_deleted__*table and dropping it. The same filters, keep-last logic, batching andskip_if_referencedbehaviour will stay. I'll add tests that check no archive table is created and that the right rows are deleted.