Skip to content

Can't delete user "admin" #17978

@malthe

Description

@malthe

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:

$ 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:

$ airflow sync-perm

Same warnings ...

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions