airflow tasks clear  <dag_id>
Clear a set of task instance, as if they never ran
Arguments
| Name | Description | 
|---|
| dag_id | The id of the dag | 
Options
| Name | Description | 
|---|
| -h, --help | Show this help message and exit | 
| -R, --dag-regex | Search dag_id as regex instead of exact string | 
| -d, --downstream | Include downstream tasks | 
| -e, --end-date  <end_date> | Override end_date YYYY-MM-DD | 
| -X, --exclude-parentdag | Exclude ParentDAGS if the task cleared is a part of a SubDAG | 
| -x, --exclude-subdags | Exclude subdags | 
| -f, --only-failed | Only failed jobs | 
| -r, --only-running | Only running jobs | 
| -s, --start-date  <start_date> | Override start_date YYYY-MM-DD | 
| -S, --subdir  <subdir> | File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg' | 
| -t, --task-regex  <task_regex> | The regex to filter specific task_ids to backfill (optional) | 
| -u, --upstream | Include upstream tasks | 
| -y, --yes | Do not prompt to confirm. Use with care! |