# Enable relationship deletion

By default, Freelucy cannot delete relationships from `cmdb_rel_ci`. ServiceNow scoped applications need explicit authorization to delete records on that table. You grant it once, in the global scope, using either of two methods.

{% hint style="danger" %}
**Global scope, System Administrator.** A System Administrator must perform these steps in the **Global** application scope.
{% endhint %}

Pick one of the two methods below. They achieve the same result.

***

## Method A — Authorize via the `cmdb_rel_ci` table

Use this method if you prefer to make the change directly on the table definition.

1. From the ServiceNow homepage, click **All** and filter for **System Definition**, then open **Tables**.

   <figure><img src="https://files.readme.io/c57b687-authorise_del1.png" alt="Open the Tables list under System Definition"><figcaption></figcaption></figure>
2. Search for `cmdb_rel_ci` under **Name**.

   <figure><img src="https://files.readme.io/b0e1343-fl-config-auth-2.png" alt="Find cmdb_rel_ci in the Tables list"><figcaption></figcaption></figure>
3. Open **CI Relationship**.
4. Click the **Application Access** tab.

   <figure><img src="https://files.readme.io/67ad443-fl-config-auth-3.png" alt="Application Access tab on the CI Relationship table"><figcaption></figcaption></figure>
5. Tick the **Can delete** checkbox and save.

Users with the Editor role can now delete relationships in Freelucy.

***

## Method B — Authorize via an Update Set

Use this method if you prefer to deploy the change as a packaged Update Set, for example through your normal change pipeline.

1. Download the [Allow Freelucy Deleting Relationships Update Set](https://www.ins-pi.com/hubfs/ins-pi%20Website%20Theme/Knowledgebase/FREELUCY/UPDATE%20SET%20Allow%20LUCY%20Deleting%20Relationships.xml.zip) and unzip it. You should see a file named `UPDATE SET Allow LUCY Deleting Relationships.xml`.
2. From the ServiceNow homepage, click **All** and filter for **Retrieved Update Sets**.
3. Open **Retrieved Update Sets**.

   <figure><img src="https://files.readme.io/320485d-fl-config-auth-4.png" alt="Retrieved Update Sets list"><figcaption></figcaption></figure>
4. Click **Import Update Set from XML**.
5. Click **Browse**, pick the XML file, and click **Upload**.
6. Open **Allow Freelucy Deleting Relationships**.

   <figure><img src="https://files.readme.io/c4ffaa3-authorise_del2.png" alt="Open the imported Update Set"><figcaption></figcaption></figure>
7. Click **Preview Update Set**.

   <figure><img src="https://files.readme.io/c331ba7-authorise_del3.png" alt="Preview the Update Set"><figcaption></figcaption></figure>
8. When the preview succeeds, close the dialog.
9. Click **Commit Update Set**.
10. When the commit succeeds, close the dialog.

Users with the Editor role can now delete relationships in Freelucy.

***

## What's next

Continue with [Grant access to users](/freelucy/configuration/grant-access.md).


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ins-pi.com/freelucy/configuration/enable-relationship-deletion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
