# Bug COMMS-252 - Cannot delete users who have work package reminders

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-252

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 15.3.1 |
| Observed in versions | 15.3.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.3.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Kabiru Mwenja |
| 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

1.  Create a user
    
2.  As that user create a reminder to any work package
    
3.  As an admin, try deleting that user via the administration
    

### What is the buggy behavior?

*   nothing happens
    

### What is the expected behavior?

*   the user should be deleted
    

### **Logs**

```text
ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR:  update or delete on table \"notifications\" violates foreign key constraint fk_rails_4db3d8d95d on table reminder_notifications
DETAIL:  Key (id)=(267311) is still referenced from table "reminder_notifications"
```

**OpenProject version**

v15.3.0
