GitHub user dosubot[bot] added a comment to the discussion: Why i can't delete user after open chart at Superset 5.0.0?
<!-- Answer --> This happens because when a user opens (views) a chart in Superset 5.0.0, an entry is created in the `logs` table that links the user's ID to that action—even if they didn't modify anything. Superset treats these log records as "associated data," which blocks user deletion to maintain data integrity and audit history. To delete the user, you would need to first remove any log entries (and possibly other related records) that reference their user ID. Be aware that deleting logs will remove audit history for that user, which may not be desirable for compliance reasons. More details on this behavior can be found [here](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/models/core.py) and in related [discussions](https://github.com/apache/superset/discussions/32807#discussioncomment-12590972). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/56345ec5-d599-4ce9-96a0-a751ca89c285?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/56345ec5-d599-4ce9-96a0-a751ca89c285?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/56345ec5-d599-4ce9-96a0-a751ca89c285?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/56345ec5-d599-4ce9-96a0-a751ca89c285?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/56345ec5-d599-4ce9-96a0-a751ca89c285?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/56345ec5-d599-4ce9-96a0-a751ca89c285?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/56345ec5-d599-4ce9-96a0-a751ca89c285?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34648) GitHub link: https://github.com/apache/superset/discussions/34648#discussioncomment-14077870 ---- This is an automatically sent email for notifications@superset.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@superset.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org