> For the complete documentation index, see [llms.txt](https://luminvs.gitbook.io/consulta-cnpj/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://luminvs.gitbook.io/consulta-cnpj/excluindo-cnpj-duplicado.md).

# Excluindo CNPJ Duplicado

{% embed url="<https://vimeo.com/1054928723?share=copy>" %}

## Excluindo CNPJs Duplicados

Após realizar as etapas de **limpeza de caracteres especiais** e **remoção de entradas inválidas**, é essencial realizar a etapa de **"Excluindo CNPJs Duplicados"**. Esse processo garante que cada CNPJ apareça apenas **uma vez** na lista, evitando consultas redundantes.

***

#### Por que remover duplicados?

* **Evita processamento desnecessário**: Reduz o número de consultas realizadas, economizando tempo e recursos.
* **Melhora a eficiência**: Garante que o sistema consulte apenas entradas únicas.
* **Evita inconsistências**: Elimina duplicidades que poderiam prejudicar a análise dos dados.

***

#### Como funciona?

1. Após as etapas de limpeza, a lista contém apenas **CNPJs válidos** com **14 dígitos**.
2. O sistema identifica e **remove as entradas duplicadas**.
3. A lista final conterá apenas **CNPJs únicos** prontos para consulta.

***

#### Exemplo:

* **Entrada original**:
  * `12345678000190`
  * `12345678000190`
  * `98765432000199`
* **Resultado final**:
  * `12345678000190`
  * `98765432000199`

***

#### Dica:

{% hint style="success" %}
Sempre realize a **remoção de duplicatas** após limpar e validar os CNPJs. Isso garante que apenas entradas **corretas e únicas** serão enviadas para consulta, otimizando o processo.
{% endhint %}


---

# 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 dynamically by asking a question.

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

```
GET https://luminvs.gitbook.io/consulta-cnpj/excluindo-cnpj-duplicado.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
