# Delete a value list

`DELETE /api/v1/value-lists/{valueList}`

Delete a value list and the values it holds.

A list the application itself reads, such as genders or phone labels, stays: deleting it answers 422 on valueList with This list stays.

## Path parameters

- `valueList` (integer, required): The id of the value list, as List value lists gives it.

## Returns

Nothing. A list of another account, a list that belongs to one field, and a value of another list answer 404.

## Rate limit

Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in `X-RateLimit-Remaining`.

## Request

```sh
curl https://my.monicahq.com/api/v1/value-lists/21 \
  -X DELETE \
  -H "Authorization: Bearer $MONICA_TOKEN"
```

```javascript
const response = await fetch('https://my.monicahq.com/api/v1/value-lists/21', {
  method: 'DELETE',
  headers: { Authorization: `Bearer ${token}` },
})
```

```php
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/value-lists/21');
```

## Response

`204`, with no body.
