# Bug OP-10557 - Deleting a user only locks the user

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-10557

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.1.6 |
| Observed in versions | 12.1.0 |
| Sprint | 12.1.6 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

referring: <https://community.openproject.org/projects/openproject/work_packages/41534/activity>

1.  Login as a user with permissions to add a private view inside the work package list (user2)
2.  Go to the work package view of a project
3.  Create a new private view, eg. Status is Resolved
4.  Save the view as User's Resolved
5.  Logout
6.  Login as Admin (user1)
7.  Delete the user2 and proceed normally

### What is the buggy behavior?

  - The user2 is locked but not deleted
  - even trying to delete the locked user2 again does not remove the user

### What is the expected behavior?

1.  If the user has one or more private views in the work package list, it should not be a limitation for deleting users by admins, at the moment they cannot be deleted

### Important note (workaround)

1.  Logout with admin user1
2.  Login with user2 (maybe reset password in order to do so)
3.  Delete ALL Private Views in the work package view
4.  Logout with user2
5.  Login with user1 (admin)
6.  Now you could delete user2

### **Logs**

not generated

### Screenshots and other files

n/a

### Environment information

12.5, running on CentOS, but it seems to be an error also in the Enterprise Cloud, reported in ticket 13793

**OpenProject installation type**

- [x] Hosted cloud edition
- [x] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.4*

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

English, German
