---
title: "Excluir Documento"
method: DELETE
path: "/api/certificate-requests/protocol/{protocolo}/documents/{id}"
tags: ["Funcionalidades Adicionais"]
---

# Excluir Documento

`DELETE /api/certificate-requests/protocol/{protocolo}/documents/{id}`

<div>
    <h2>Endpoint para excluir um documento de uma requisição de certificado na AR.</h2>
    <p>Recebe o protocolo da requisição de certificado e o id do documento.</p>
    <h3>Códigos de ERRO:</h3>
    <table>
        <thead>
            <tr>
                <th>HTTP</th>
                <th>error_id</th>
                <th>error_code</th>
                <th>message</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>422</td>
                <td>14025</td>
                <td>ar_universal.erro.excluir.documento</td>
                <td>Falha ao excluir documento. Status atual da Requisição de certificado não permite alteração.</td>
            </tr>
            <tr>
                <td>404</td>
                <td>4510</td>
                <td>ar_universal.erro.excluir.documento</td>
                <td>Falha ao excluir documento. Requisição de certificado não encontrada.</td>
            </tr>
            <tr>
                <td></td>
                <td>30521</td>
                <td>ar_universal.erro.excluir.documento</td>
                <td>Falha ao excluir documento. Documento não encontrado.</td>
            </tr>
            <tr>
                <td>500</td>
                <td>30007</td>
                <td>ar_universal.erro.excluir.documento</td>
                <td>Falha ao excluir documento.</td>
            </tr>
        </tbody>
    </table>
</div>

## Path parameters

- `protocolo` string, required
- `id` string, required

## Headers

- `Content-Type` string
- `Authorization` string

## Response `200`

OK

- object

---

[API](https://skmtc.net/bry/apis/bry-easy-sign-api-rest.md) · [All operations](https://skmtc.net/bry/apis/bry-easy-sign-api-rest/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bry/bry-easy-sign-api-rest/revisions/c87e026e87ac/schema)
