> For the complete documentation index, see [llms.txt](https://docs.ingestlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ingestlabs.com/tag-manager/data-elements/delete-a-data-element.md).

# Delete a Data Element

## Introduction

This document outlines the step-by-step procedure for deleting a particular Data Element.

## Procedure

To delete a Data Element in Ingest Labs, perform the following steps:

**Step 1:** Select the Data Element you want to delete.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FR2deIcdWObqTFRMXXzeQ%2Fimage.png?alt=media&amp;token=fda956ef-7cea-45d3-901d-8a4b8e0748fc" alt=""><figcaption></figcaption></figure>

**Step 2:** From the **Actions** drop-down menu on the top right corner, select **Delete**.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2Fu8hdUFV1nyhZ0CCuM590%2Fimage.png?alt=media&amp;token=cf0c5fc0-ea59-49d3-9d9f-8aa1eb90f931" alt=""><figcaption></figcaption></figure>

**Step 3:** Click **Yes** on the confirmatory message that appears.

![](https://ingest-lab.netlify.app/images/dataelementsimages/deleteconfirmatory.png)

**Step result**: The Data Element is deleted successfully.

**Note 1:** You cannot delete a Data Element if there are any dependencies in the tag. Only after deleting the dependent categories, you can delete the Data Element successfully.

![](https://ingest-lab.netlify.app/images/dataelementsimages/deletedependencies.png)

**Note 2:** Even after deleting the dependencies, if you cannot delete the Data Element, then you must Publish the relevant categories first and then perform the delete operation.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FVktzCjT05OPjn6nZFwGB%2FDelete%20data%20element.mp4?alt=media&token=d497bb74-307c-46cb-ab81-4a54c155ed61>" %}


---

# 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.ingestlabs.com/tag-manager/data-elements/delete-a-data-element.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.
