Empty the trash of a vault
DELETE
/api/v1/vaults/{vault}/trash
Delete everything in the trash of a vault for good. This cannot be undone.
The files the items held are let go of, and are removed from storage once nothing else points at them.
Path parameters
Sent as JSON. Anything not listed here is ignored.
vault
string
Required
The vault the trash belongs to, named either by the readable name it reports as slug or by its id.
Returns
Nothing at all. A vault 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.
DELETE
curl https://my.monicahq.com/api/v1/vaults/dunder-mifflin/trash \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://my.monicahq.com/api/v1/vaults/dunder-mifflin/trash', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/vaults/dunder-mifflin/trash');
Response
204
No content.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.