# Eliminar un cliente

{% hint style="danger" %} <mark style="color:red;">RECUERDE</mark> que esta acción no puede ser deshecha. Todo el historial del cliente será también eliminado, incluyendo los formularios y las órdenes de trabajo que se hayan realizado sobre el mismo.
{% endhint %}

<mark style="color:red;">`DELETE`</mark> `https://api.persat.com.ar/v1/clients/uid_client`

Eliminar el cliente cuyo número es `uid_client` y todo su historial

#### Headers

| Name                                            | Type   | Description     |
| ----------------------------------------------- | ------ | --------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer API\_KEY |

{% tabs %}
{% tab title="200 El cliente fue borrado con éxito" %}

```json
{
    "success": true,
    "data": {
        "uid_client": "CL-0044"
    }
}
```

{% endtab %}

{% tab title="404 No existe el cliente que se desea eliminar" %}

```json
{
    "success": false,
    "error": {
        "status": 404,
        "type": "NOT_FOUND",
        "userMessage": "No existe un cliente con este número."
    }
}
```

{% endtab %}
{% endtabs %}

A continuación un ejemplo con curl, en donde elimino el cliente con número "CL-0044"

```bash
curl --location --request DELETE "https://api.persat.com.ar/v1/clients/CL-0044" \
  --header "Authorization: Bearer YOUR_API_KEY"
```


---

# 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.api.persat.com.ar/entidades-basicas/clientes/eliminar-un-cliente.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.
