> For the complete documentation index, see [llms.txt](https://docs.opshub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opshub.com/v7.237/mbse-connector-sdk-index/mbse-sdk-connector-apis/relation-apis/delete-relation.md).

# Delete Relation

## API Name

API Name: Element – Delete Relation

***

## Overview

This API deletes an existing relation between a source element and a target element.

MBSE Core uses this API to:

* Remove structural links
* Remove dependencies
* Remove associations
* Maintain model consistency during synchronization

Connector responsibility:

* For the given source element and relation details:
  * Delete the corresponding relation in the end system.
* If the end system models relations as elements:
  * Delete the relation element.
* If the end system models relations implicitly:
  * Remove the link using the appropriate API.
* Ensure deletion is scoped to the given project and branch.

***

### API URI

```bash
DELETE: /mbse/api/1.0/elements/{elementId}/relations
    ?projectId={projectId}
    &elementTypeId={elementTypeId}
    &branchId={branchId}
    &relationType={relationType}
    &targetElementId={targetElementId}
    &targetElementTypeId={targetElementTypeId}
```

***

### Path Parameters

| Name      | Mandatory | Type   | Description                               |
| --------- | --------- | ------ | ----------------------------------------- |
| elementId | True      | String | ID of the source element in the relation. |

***

### URI Parameters

| Name          | Mandatory | Type   | Description                                                                |
| ------------- | --------- | ------ | -------------------------------------------------------------------------- |
| projectId     | True      | String | ID of the project.                                                         |
| elementTypeId | True      | String | ID of the source element type.                                             |
| branchId      | False     | String | ID of the branch. If omitted, default branch behavior applies.             |
| relationType  | True      | String | Type of relation (e.g., Satisfied By, Verifies, Abstraction, dependency, r |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.opshub.com/v7.237/mbse-connector-sdk-index/mbse-sdk-connector-apis/relation-apis/delete-relation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
