> For the complete documentation index, see [llms.txt](https://alek-cora-glez.gitbook.io/odoo-generic-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alek-cora-glez.gitbook.io/odoo-generic-api/delete.md).

# Delete

## **(Delete) - Using API to delete resources**

**\[DELETE]:** *https\://\<server\_url>/api/\<model\_name>/\<resource\_id>*

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

```
curl --location --request DELETE 'https://<server_id>/api/hr.employee/<record_id>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{}'
```

{% endtab %}

{% tab title="Response" %}

```
{
    "jsonrpc": "2.0",
    "id": null,
    "result": {
        "status_code": 200,
        "data": "OK"
    }
}
```

{% endtab %}
{% endtabs %}
