> For the complete documentation index, see [llms.txt](https://kb.stoque.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.stoque.com.br/zeevdocs/integracoes/como-integrar-outras-ferramentas-com-o-zeev-docs/como-preparar-uma-instrucao-para-executar-uma-operacao/como-excluir-documento-logicamente-via-api.md).

# Como excluir documento logicamente via API

## Visão geral

Serviço Web: *https\://\<servidor do* Zeev doc&#x73;*>/services/silentLogin.svc*

Confira abaixo o modelo de estrutura XML para excluir documento logicamente (EXECUTEACTION: DELETE):

| Estrutura do XML                                             | Requerido      | Descrição                                                                                                                   |
| ------------------------------------------------------------ | -------------- | --------------------------------------------------------------------------------------------------------------------------- |
| \<?xml version="1.0" encoding="UTF-8"?>                      | Sim            | -                                                                                                                           |
| \<eContent>                                                  | Sim            | Raiz.                                                                                                                       |
| \<header>                                                    | Sim            | Cabeçalho de identificação pelo Zeev docs.                                                                                  |
| <p><br>      \<module name="SILENTLOGINEXECUTEACTION" /></p> | <p><br>Sim</p> | <p>Informações do módulo de entrada.<br>Atributo(s):<br><em>name</em> (obrigatório) - nome do módulo.</p>                   |
| <p><br>      \<application code=" " /></p>                   | <p><br>Sim</p> | <p>Identificação da aplicação.<br>Atributo(s):<br><em>code</em> (obrigatório) - código da aplicação.</p>                    |
| \<userToken />                                               | Sim            | Token de identificação do usuário para SilentLogin. Disponibilizada interface para geração do token através de web service. |
| \<identification />                                          | Não            | Nó de livre preenchimento, podendo ser utilizado para inclusão de identificação do sistema que gerou o XML de SilentLogin.  |
| \<adHocUser />                                               | Não            | Usuário que será gravado o log de acesso e ação.                                                                            |
| \</ header>                                                  | -              | -                                                                                                                           |
| \<structure>                                                 | -              | -                                                                                                                           |
| \<events>                                                    | -              | -                                                                                                                           |
| <p><br>         \<event name="DELETE"></p>                   | <p><br>Sim</p> | <p>Informações do módulo de entrada.<br>Atributo(s):<br><em>name</em> (obrigatório) - nome da função a ser chamada.</p>     |
| \<content>                                                   | -              | -                                                                                                                           |
| \<documentDestiny />                                         | Sim            | Código do documento (IND\_ID) que deve ser excluído logicamente.                                                            |
| \</ content>                                                 | -              | -                                                                                                                           |
| \</ event>                                                   | -              | -                                                                                                                           |
| \</ events>                                                  | -              | -                                                                                                                           |
| \</structure>                                                | -              | -                                                                                                                           |
| \</eContent >                                                | -              | -                                                                                                                           |

Efetue o download do modelo de XML:

{% file src="/files/VRWApTh2dmun703N72QA" %}

O retorno do método será de sucesso ou falha.


---

# 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://kb.stoque.com.br/zeevdocs/integracoes/como-integrar-outras-ferramentas-com-o-zeev-docs/como-preparar-uma-instrucao-para-executar-uma-operacao/como-excluir-documento-logicamente-via-api.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.
