> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opigno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unassign taxonomy term from hierarchy level

<Warning>
  Only users with the <b>ADMINISTRATOR</b> scope in the current context can unassign taxonomy terms from hierarchy levels. Make sure your API token grants administrator privileges.
  See [Understanding Scopes](/OpignoEnterpriseAPI/UserContextManagement#understanding-scopes) for more information.
</Warning>

To remove a taxonomy term assignment from a specific hierarchy level, use the `unassignTaxonomyTermFromLevel` mutation.

**Access policy:**

* The API user context must have permission to manage taxonomy term assignments.
* The specified `taxonomyTermId` must exist and be accessible.
* The specified `hierarchyLevelId` must exist and be accessible.

The mutation accepts the following arguments:

| Argument           | Type | Description                                                                                | Default |
| :----------------- | :--- | :----------------------------------------------------------------------------------------- | :------ |
| `taxonomyTermId`   | `ID` | Required. The unique identifier of the taxonomy term to unassign.                          | —       |
| `hierarchyLevelId` | `ID` | Required. The unique identifier of the hierarchy level to unassign the taxonomy term from. | —       |

<Note>
  This operation removes the relationship between a taxonomy term and a hierarchy level, which affects categorization and filtering capabilities.
</Note>

<CodeGroup>
  ```filename GraphQL [expandable] theme={null}
  mutation unassignTaxonomyTermFromLevel {
    unassignTaxonomyTermFromLevel(
      taxonomyTermId: 9
      hierarchyLevelId: 1
    ) {
      errors
      response
    }
  }
  ```

  ```File Query result [expandable] theme={null}
  {
    "data": {
      "unassignTaxonomyTermFromLevel": {
        "errors": [],
        "response": true
      }
    }
  }
  ```
</CodeGroup>
