GitHub user maddyobrienjones created a discussion: cannot delete user 
"Associated data exists, please delete them first"

When trying to delete a user, the error message "Associated data exists, please 
delete them first" appears. All charts and dashboards created by that account 
have been deleted. I have also set the user as inactive and deleted its role 
setting. I am able to edit the user but not delete it. 

I found the following similar issue which was marked as stale with no response: 
https://github.com/apache/superset/issues/8752 

### Expected results

Successful deletion of a user

### Actual results

"Associated data exists, please delete them first" error message

Logs when navigating to user list and trying to delete user (domain has been 
replaced with deploymentlink.com):
10.4.15.23 - - [25/Feb/2021:19:48:28 +0000] "GET /users/list/ HTTP/1.1" 200 
26741 "deploymentlink.com/superset/welcome" "Mozilla/5.0 (Macintosh; Intel Mac 
OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 
Safari/537.36"
10.4.15.23 - - [25/Feb/2021:19:48:34 +0000] "POST /users/delete/3 HTTP/1.1" 302 
299 "deploymentlink.com/users/list" "Mozilla/5.0 (Macintosh; Intel Mac OS X 
10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 
Safari/537.36"
10.4.15.23 - - [25/Feb/2021:19:48:34 +0000] "GET /users/list/ HTTP/1.1" 200 
26786 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 
(KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"


#### Screenshots

![Screen Shot 2021-02-25 at 2 42 56 
PM](https://user-images.githubusercontent.com/35735580/109208087-e616ce80-7777-11eb-8b28-4ff3920c773b.png)

#### How to reproduce the bug

1. Go to 'List Users'
2. Navigate to user row
3. Click on 'Delete' icon
4. See error

### Environment

(please complete the following information):

- superset version: `superset version`: Superset 0.999.0dev
- python version: `python --version`: 3.7.9
- node.js version: `node -v`: couldn't find

### Checklist

Make sure to follow these steps before submitting your issue - thank you!

- [x] I have checked the superset logs for python stacktraces and included it 
here as text if there are any.
- [ ] I have reproduced the issue with at least the latest released version of 
superset.
- [x] I have checked the issue tracker for the same issue and I haven't found 
one similar.

### Additional context

none

GitHub link: https://github.com/apache/superset/discussions/40137

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