# Delete Assignment Rule

This call is used to delete an assignment rule.  Care should be taken when using this call, as there will be no prompt (‘are you sure you want to delete this rule?’) when it is sent.  The deletion request will be immediately processed.

&#x20;

It is sent as a DELETE call, and the url includes the ID (from the ‘get assignment rules’ call) for the rule to be deleted.

<figure><img src="/files/89mDbosKlLjdt4EDiGEQ" alt=""><figcaption><p>Delete assignment rule API</p></figcaption></figure>

The body of this call is the same as the body for ‘Get Assignment Rules’ or ‘Get Rule Details’ call, containing the user credentials, project, and workset information.

&#x20;

```
{
    "context": {
        "user": "user_ID",
        "password": "xxxx",
        "project": {
            "name": "imp_payments_demo",
            "version": "1.0"
        },
        "workSet": {
            "name": "api_2_workset",
            "version": "1.1"
        }
    }
}
```

&#x20;

The return message for this call is very simple, with a single return code (‘1’ for ‘true’).

<figure><img src="/files/Gf4vnnpFxWGVKsPe6kZc" alt=""><figcaption><p>Return message for delete rule API</p></figcaption></figure>

In TDO, we can now see no rules for this field (this is the same rule that was updated using the ‘Update Assignment Rule’ call in the previous section).

<figure><img src="/files/d1dwHJoYufDYFIeex4uz" alt=""><figcaption><p>Deleted rule</p></figcaption></figure>


---

# 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.apica.io/platform-docs/test-data-orchestrator-tdo/user-documentation/api-guide/assignment-rule-apis/delete-assignment-rule.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.
