# Delete a loan

`DELETE /api/v1/vaults/{vault}/possessions/{possession}/loans/{loan}`

Delete one loan of a possession.

The deletion is final, and the provenance events the loan wrote are deleted with it. The contact stays. 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.
- `loan` (uuid, required): The id of the loan. A loan of another possession answers 404.

## Returns

Nothing. A loan 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/8a3d1f62-7b4e-4c95-a0e1-2f6c9b5d3e71/loans/4c7e2a91-3f58-4b06-9d1e-6a2f8c3b5e04 \
  -X DELETE \
  -H "Authorization: Bearer $MONICA_TOKEN"
```

```javascript
const response = await fetch('https://my.monicahq.com/api/v1/vaults/dunder-mifflin/possessions/8a3d1f62-7b4e-4c95-a0e1-2f6c9b5d3e71/loans/4c7e2a91-3f58-4b06-9d1e-6a2f8c3b5e04', {
  method: 'DELETE',
  headers: { Authorization: `Bearer ${token}` },
})
```

```php
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/vaults/dunder-mifflin/possessions/8a3d1f62-7b4e-4c95-a0e1-2f6c9b5d3e71/loans/4c7e2a91-3f58-4b06-9d1e-6a2f8c3b5e04');
```

## Response

`204`

```json
[]
```
