I have some failing DAGs, let's say from 1st-Feb to 20th-Feb. From that date upword, all of them succeeded.

I tried to use the [cli](https://airflow.apache.org/cli.html#clear) (instead of doing it twenty times with the Web UI):

`airflow clear -f -t * my_dags.my_dag_id`

But I have a weird error:

```
airflow: error: unrecognized arguments: airflow-webserver.pid airflow.cfg airflow_variables.json my_dags.my_dag_id

```

**EDIT 1:**

Like @tobi6 explained it, the `*` was indeed causing troubles.
Knowing that, I tried this command instead: 

```
airflow clear -u -d -f -t ".*" my_dags.my_dag_id 

```

but it's only returning failed task instances (`-f` flag). `-d` and `-u` flags don't seem to work because taskinstances downstream and upstream the failed ones are ignored (not returned).

**EDIT 2:**

like @tobi6 suggested, using `-s` and `-e` permits to select all DAG runs within a date range. Here is the command:

```
airflow clear  -s "2018-04-01 00:00:00" -e "2018-04-01 00:00:00"  my_dags.my_dag_id.

```

However, adding `-f` flag to the command above only returns failed task instances. is it possible to select all failed task instances of all failed DAG runs within a date range ?