malthe opened a new issue #17978:
URL: https://github.com/apache/airflow/issues/17978


   ### Apache Airflow version
   
   2.1.2
   
   ### Operating System
   
   Debian
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   I tried to delete the "admin" user using the command-line interface:
   ```bash
   $ airflow users delete -u admin
   ```
   I get the message "User admin deleted".
   
   But it's in fact not deleted!
   
   ### What you expected to happen
   
   I get warnings such as:
   ```
   WARNING - Refused to delete permission view, assoc with role exists My 
Profile.userinfoedit Admin
   ...
   WARNING - Refused to delete permission view, assoc with role exists DAG 
Runs.clear Admin
   ```
   
   ### How to reproduce
   
   _No response_
   
   ### Anything else
   
   The problem persists between attempts. I also tried:
   ```bash
   $ airflow sync-perm
   ```
   Same warnings ...
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to