# Delete a maintenance record

`DELETE /api/v1/vaults/{vault}/possessions/{possession}/maintenance-records/{maintenanceRecord}`

Delete a maintenance record of a possession.

The deletion is final, and the maintenance history loses that job. When it was the latest record, the one before it becomes the latest, and its next due date counts again. 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.
- `maintenanceRecord` (uuid, required): The id of the maintenance 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/maintenance-records/b71c5e09-2d36-4f8a-9e14-0a6d3b8c2f57 \
  -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/maintenance-records/b71c5e09-2d36-4f8a-9e14-0a6d3b8c2f57', {
  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/maintenance-records/b71c5e09-2d36-4f8a-9e14-0a6d3b8c2f57');
```

## Response

`204`

```json
[]
```
