I can't login in the web UI of airflow. I always get this Invalid login error.
When I run the airflow users list the users are there.
So my option is to delete the airflow.db and run airflow db init again.
I want to know if it is safe to do that?
If the issue is with users then you can simply use create/delete user CLI:
create:
delete:
There is no need to run
db initfor the problem you described.