curl -X POST "https://mail.example.com/api/v1/delete/qitem" -H "X-API-Key: $MAILCOW_API_KEY" -H "Content-Type: application/json" -d '{"items":["5f8a1b2c3d4e5f6a7b8c9d0e"]}'

Category: Mail Servers & Postfix

curl -X POST "https://mail.example.com/api/v1/delete/qitem" -H "X-API-Key: $MAILCOW_API_KEY" -H "Content-Type: application/json" -d '{"items":["5f8a1b2c3d4e5f6a7b8c9d0e"]}'

Delete quarantined messages permanently

The items array names quarantine entries whose stored message copies are deleted without delivery. This is irreversible, so review the sender and subject first. Use it to purge old spam instead of releasing it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.