# Bug OP-9112 - Unclear error message when deleting work package type

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 12.0.0 |
| Observed in versions |  |
| Sprint | 12.0.0 |
| 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 |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### **Environment**:

11.3.x

### **Steps to reproduce:**

1.  Go to administration.
2.  Select &quot;Work packages&quot; &gt; &quot;Types&quot;.
3.  Delete a type.

### **Actual Behavior**

Generic error message that type cannot be deleted since it is in use.

It is unclear in which projects the work package type is still being used. Especially when there are archived projects, it can be very difficult to find this out.

### **Expected Behavior**

More detailed error message:

*   Provide a link to a query which lists all WP that use the type
*   If there are archived projects that use this type, list their names in the error message
