# openEHR-tool

**URL:** https://discourse.openehr.org/t/openehr-tool/3108
**Category:** Tools
**Tags:** rest-apis
**Created:** [28 October 2022 08:30 UTC](https://discourse.openehr.org/t/openehr-tool/3108 "2022-10-28T08:30:03Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![linforest](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@linforest](https://discourse.openehr.org/u/linforest)
#### Post date: [22 August 2024 07:03 UTC](https://discourse.openehr.org/t/openehr-tool/3108/10 "2024-08-22T07:03:51Z")

</div>

**Solution** :

Add these related EHRBase **environment vars** in the docker-compose.yml and restart the docker images:

```auto
ADMINAPI_ACTIVE=true
ADMIN_API_ACTIVE=true
ADMINAPI_ALLOWDELETEALL=true

```

**Reference** :

> [@Admin delete composition](https://discourse.openehr.org/t/admin-delete-composition/4943/3):
>
> @surfer also make sure the admin-api.enabled is set to ture. In newer versions, spring security returns 401 in case a secured path doesn’t exist, so that might be another reason why you get a 401.

---

_[View the full topic](https://discourse.openehr.org/t/openehr-tool/3108)._
