# Delete a record

`DELETE /api/v1/vaults/{vault}/entities/{entity}`

Delete a record. It goes to the trash of the vault, where it can be restored for 30 days.

## Path parameters

- `vault` (string, required): The vault the record lives in, named either by the readable name it reports as slug or by its id. Both answer.
- `entity` (uuid, required): The id of the record, as the list of records gives it.

## Returns

Nothing at all. A record in another vault, or belonging to somebody else, 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://monica-789392842564.asia-southeast1.run.app/api/v1/vaults/schrute-farms/entities/9b1e6c42-7a35-4f08-b2d9-5c8e41a7f031 \
  -X DELETE \
  -H "Authorization: Bearer $MONICA_TOKEN"
```

```javascript
const response = await fetch('https://monica-789392842564.asia-southeast1.run.app/api/v1/vaults/schrute-farms/entities/9b1e6c42-7a35-4f08-b2d9-5c8e41a7f031', {
  method: 'DELETE',
  headers: { Authorization: `Bearer ${token}` },
})
```

```php
$response = Http::withToken($token)->delete('https://monica-789392842564.asia-southeast1.run.app/api/v1/vaults/schrute-farms/entities/9b1e6c42-7a35-4f08-b2d9-5c8e41a7f031');
```

## Response

`204`, with no body.
