---
title: "Remove Service Dependency"
description: "Call /dependencies/remove to detach a dependency service from the current service."
stack: "Enterprise Stack (commercial) — version 0.21.0"
stack_version: "0.21.0"
stack_comparison: https://docs.walt.id/community-vs-enterprise.md
canonical_url: https://docs.walt.id/enterprise-stack/administration/services/dependency-services/remove
generated: 2026-07-20
---
# Remove Service Dependency

Call `/dependencies/remove` to detach a dependency service from the current service.

## Detach dependency (DID Service example)

**Option: CURL**

Endpoint: `/v1/{target}/did-service-api/dids/dependencies/remove` | [API Reference](https://enterprise.sandbox.walt.id/swagger/index.html#/DID%20Service/post_v1__target__did_service_api_dids_dependencies_remove)

**Example Request**

```bash
curl -X 'POST' \
  'https://{orgHost}.enterprise-sandbox.waltid.dev/v1/{target}/did-service-api/dids/dependencies/remove' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer {yourToken}' \
  -H 'Content-Type: application/json' \
  -d 'test.tenant1.did-store-1'
```

**Path Parameters**

- `orgHost`: _String_ - Organization host alias to call against. When you are working in the sandbox organization `test`, the base URL becomes `https://test.enterprise-sandbox.waltid.dev`.
- `target`: _resourceIdentifier_ - Full path to the DID service you want to update, following `{organization}.{tenant}.{serviceId}`. For example, `test.tenant1.did-service-1`.

**Body Parameters**

- `dependency`: _String_ - JSON string containing the fully-qualified path of the dependency you want to detach (for example `test.tenant1.did-store-1`).

**Response Codes**

- `204` – Dependency detached successfully.
- `400` – Invalid path or dependency does not exist.
- `401/403` – Authentication or authorization failure.
