GitHub user LeoDiep added a comment to the discussion: cannot delete user 
"Associated data exists, please delete them first"

just want to save time for who don't know how to do as 
[C-monC](https://github.com/C-monC) did above,
if you run superset by docker, the default metadata of superset is from the 
container name 'superset_db' and the image is prosgre. This database is already 
connected on Superset UI as example database when you load the examples. 
However you cannot delete records in this database if you haven't eddited its 
setting and allow DML. 

After that, just go to sqllab, find the user_id you want to delete, run 'delete 
from ab_user where id = ...' , it will show you which table have data 
associated with this user_id. Then run delete all rows having that user_id of 
all related tables and run 'delete from ab_user where id = ...' again, you can 
now remove that user.


GitHub link: 
https://github.com/apache/superset/discussions/40137#discussioncomment-16924816

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to