# /catchment/delete

## location after deleting a catchment

<mark style="color:blue;">`GET`</mark> `geolytix.xyz/api/location/edit/catchment/delete`

Delete a catchment from a location and return updated infoj.

#### Query Parameters

| Name   | Type   | Description                           |
| ------ | ------ | ------------------------------------- |
| locale | string | The locale key.                       |
| layer  | string | The layer key.                        |
| table  | string | The PostGIS table of the location.    |
| id     | string | The location id.                      |
| field  | string | The field for the catchment geometry. |
| token  | string | Required for private endpoints.       |

{% tabs %}
{% tab title="200 The updated location infoj." %}
```javascript
{...}
```
{% endtab %}

{% tab title="406 Query has missing or invalid parameter." %}
```
'Invalid locale.'

'Invalid layer.'

'Missing table.'

'Invalid parameter.'
```
{% endtab %}

{% tab title="500 Please check backend error logs for more details." %}
```
'PostgreSQL query error - please check backend logs.'
```
{% endtab %}
{% endtabs %}

