# Remoção de Chave PIX

Este endpoint permite **excluir uma chave PIX existente** vinculada a uma conta bancária específica (`accountId`).

A operação é **irreversível**, e após a exclusão a chave deixará de estar associada à conta, impossibilitando novos recebimentos através dela.

O identificador único da chave (`keyId`) deve ser informado diretamente na URL da requisição.

## Endpoint para Deletar Chave Pix

<mark style="color:red;">`DELETE`</mark> `/accounts/{accountId}/pix/keys/{keyId}`

Este endpoint é protegido e requer o uso do cabeçalho `Authorization: Bearer <token>` e `x-tenant-id`.

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |
| x-tenant-id   | `Tenant ID`        |

**Response**

{% tabs %}
{% tab title="200" %}

```json
No Content
```

{% endtab %}

{% tab title="404" %}

```json
{
    "code": "NOT_FOUND",
    "error": "Chave PIX não encontrada",
    "message": "Chave PIX não encontrada"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://docs.stric.com.br/documentacao/chaves-pix/remocao-de-chave-pix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
