# Delete an insurance record

`DELETE /api/v1/vaults/{vault}/possessions/{possession}/insurance-records/{insuranceRecord}`

Delete an insurance record of a possession.

The deletion is final, and the history of the coverage loses that policy period. The account log keeps the name of the possession.

## Path parameters

- `vault` (string, required): The vault the possession is kept in, named either by the readable name it reports as slug or by its id. A vault of another account answers 404.
- `possession` (uuid, required): The id of the possession. A possession of another vault or of another account answers 404.
- `insuranceRecord` (uuid, required): The id of the insurance record. A record of another possession answers 404.

## Returns

Nothing. A record of another possession or of another account answers 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/vaults/dunder-mifflin/possessions/9c4e2a71-5b38-4f06-8d1e-2a7f3c6b9e15/insurance-records/e09b4d27-3c58-4a1f-8b62-1d7e5f9a0c34 \
  -X DELETE \
  -H "Authorization: Bearer $MONICA_TOKEN"
```

```javascript
const response = await fetch('https://my.monicahq.com/api/v1/vaults/dunder-mifflin/possessions/9c4e2a71-5b38-4f06-8d1e-2a7f3c6b9e15/insurance-records/e09b4d27-3c58-4a1f-8b62-1d7e5f9a0c34', {
  method: 'DELETE',
  headers: { Authorization: `Bearer ${token}` },
})
```

```php
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/vaults/dunder-mifflin/possessions/9c4e2a71-5b38-4f06-8d1e-2a7f3c6b9e15/insurance-records/e09b4d27-3c58-4a1f-8b62-1d7e5f9a0c34');
```

## Response

`204`

```json
[]
```
