# Delete Company

## GET or POST Request

{% hint style="info" %}
<https://v1.api19.com/ra/companies/delete>
{% endhint %}

Delete a specific company

| Argument    | Required | Type         |
| ----------- | -------- | ------------ |
| company\_id | yes      | company id   |
| key         | yes      | your api key |

{% tabs %}
{% tab title="Curl Post" %}

```php
curl https://v1.api19.com/ra/companies/delete \
 -d 'company_id=h329fh23r' \
 -d 'key=api_token'
```

{% endtab %}

{% tab title="Curl Get" %}

```
curl https://v1.api19.com/ra/companies/delete?company_id=32yg23&key=apikey
```

{% endtab %}

{% tab title="JSON Response" %}

```php
OK:
{
    "status": "ok"
}

ERROR:
{
    "status": "error",
    "error": "Company has registered agents" 
}
```

{% endtab %}
{% endtabs %}
