> For the complete documentation index, see [llms.txt](https://docs.api.persat.com.ar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.api.persat.com.ar/entidades-basicas/clientes/eliminar-un-cliente.md).

# 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"
```
