# Bug OP-18891 - Last admin can delete themselves

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 17.1.1 |
| Observed in versions |  |
| Sprint | 17.1.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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 | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Make sure that self deletion is allowed in \*\*Administration -&gt; Users &amp; Permissions -&gt; User Settings -&gt; Users allowed to delete their accounts
    
2.  Make sure you are the only active administrator in the instance
    
3.  Go to your account settings page
    
4.  Click on the delete button in the top right
    

### What is the buggy behavior?

*   You can delete yourself if you are the latest administrator, leaving the OpenProject instance unmanageable.
    

### What is the expected behavior?

1.  Ideally: We do not even show the delete button
    
2.  At least: Prevent the delete action
