# Delete a case in Bonita 2022.1

**URL:** <https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154>\
**Category:** Q&A\
**Created:** [7 April 2022 16:29 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154 "2022-04-07T16:29:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xyet](https://avatars.discourse-cdn.com/v4/letter/x/ecb155/32.png) [@Xyet](https://community.ofelia.com/u/Xyet)\
**Post date:** [7 April 2022 16:29 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154/1 "2022-04-07T16:29:02Z")

</div>

Hello !

When I update my bonita studio&nbsp;from 2021.2 to 2022.1

I can't&nbsp;delete my case &nbsp;and the request status code is 403

and I follow the API on the documentation with postman. the result is the same

Is it documentation error?

---

<div class="post-metadata">

**Author:** ![romain.bioteau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/romain.bioteau/32/720_2.png) [@romain.bioteau](https://community.ofelia.com/u/romain.bioteau)\
**Post date:** [8 June 2022 09:18 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154/2 "2022-06-08T09:18:23Z")

</div>

Hi,

There is a regression in 2022.1 with the Admin case list page permissions.  
Here is a workaround:

1. Go to the bonita admin application, export the ressource “Bonita Admin Case List”.
2. Open the zip without unzip it. Modify the page.properties and add “, DELETE|bpm/case” to the list of the ressources.
3. Change also the name and the displayName.
4. In the bonita admin application in ressource page, click on the “install” button.
5. Select the modified zip file and update the ressource.
6. Go to the application page
7. Click on the three dots button for the “Bonita Administrator Application”
8. Delete “admin-case-list”
9. Click on add page
10. Select the previously installed page
11. Put “admin-case-list” for the url field
12. Delete “Case” under BPM in navigation space
13. Click on add under Navigation
14. In name input, put “Case” and in page input select the page that you just add.
15. Logout and login and then the deletion of a case will be possible.

HTH  
Romain

---

<div class="post-metadata">

**Author:** ![romain.bioteau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/romain.bioteau/32/720_2.png) [@romain.bioteau](https://community.ofelia.com/u/romain.bioteau)\
**Post date:** [8 April 2022 13:42 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154/3 "2022-04-08T13:42:57Z")

</div>

Hi,

Are you sure the user you are using has the permission to delete a case ?

---

<div class="post-metadata">

**Author:** ![Xyet](https://avatars.discourse-cdn.com/v4/letter/x/ecb155/32.png) [@Xyet](https://community.ofelia.com/u/Xyet)\
**Post date:** [8 April 2022 15:15 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154/4 "2022-04-08T15:15:20Z")

</div>

Yea, all users in the orgazition are admin.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [12 April 2022 23:54 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154/5 "2022-04-12T23:54:32Z")

</div>

Hi, are you trying to delete an open case or an archived case? Can you share the REST URL called?&nbsp;

openCase ID and archivedCase ID are different, see more explanation&nbsp;here:&nbsp;https://documentation.bonitasoft.com/bonita/2022.1/pages-and-forms/uid-case-overview-tutorial#\_is\_there\_an\_existing\_archived\_case\_for\_our\_caseid

If you are trying to delete an archived Case, then you need to use the archivedCase ID.&nbsp;&nbsp;

HTH

---

<div class="post-metadata">

**Author:** ![rdj\_1414624](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/rdj_1414624/32/1287_2.png) [@rdj\_1414624](https://community.ofelia.com/u/rdj_1414624)\
**Post date:** [2 June 2022 14:00 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154/6 "2022-06-02T14:00:45Z")

</div>

Hi, did you find a solution? I have the same problem with 2022.1, unable to delete a case, from REST and even from WEB GUI in "Bonita Administrator Application"

Best regards

---

<div class="post-metadata">

**Author:** ![Xyet](https://avatars.discourse-cdn.com/v4/letter/x/ecb155/32.png) [@Xyet](https://community.ofelia.com/u/Xyet)\
**Post date:** [2 June 2022 15:45 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154/7 "2022-06-02T15:45:31Z")

</div>

Hello，try to login super admin to request this rest api.

I don't know why，but I solved it by this way.

---

<div class="post-metadata">

**Author:** ![rdj\_1414624](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/rdj_1414624/32/1287_2.png) [@rdj\_1414624](https://community.ofelia.com/u/rdj_1414624)\
**Post date:** [7 June 2022 11:35 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154/8 "2022-06-07T11:35:22Z")

</div>

Hi Xyet, I've try and it works with install user. I can delete a case from REST.

But it's not a solution to use install user to be able to delete a Case!!! There is no GUI possiblities to delete Cases from install user.

Bonitasoft have to give a Solution.

Best regards

&nbsp;

---

<div class="post-metadata">

**Author:** ![rdj\_1414624](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/rdj_1414624/32/1287_2.png) [@rdj\_1414624](https://community.ofelia.com/u/rdj_1414624)\
**Post date:** [7 June 2022 15:31 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154/9 "2022-06-07T15:31:44Z")

</div>

I saw an error in logfile (I use fitnesse account to detete the case which is an administrator):

2022-06-07T17:29:38,315+0200 | thp051 | DEBUG | [http-nio-8098-exec-4|91] o.b.e.a.PermissionServiceImpl - THREAD\_ID=91 | HOSTNAME=thp051 | TENANT\_ID=1 | Unauthorized access to DELETE bpm/case/2 attempted by fitnesse, required permissions: [case\_delete]

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![romain.bioteau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/romain.bioteau/32/720_2.png) [@romain.bioteau](https://community.ofelia.com/u/romain.bioteau)\
**Post date:** [16 June 2022 16:06 UTC](https://community.ofelia.com/t/delete-a-case-in-bonita-2022-1/11154/10 "2022-06-16T16:06:49Z")

</div>

Workaround added
