/api/qmail/db/tells/clear-sent

GET POST

Garbage-collect successful pending tells. Deletes every row whose status is sent.

GET http://localhost:8081/api/qmail/db/tells/clear-sent

Description

The pending-tells table grows over time as messages are delivered. This call removes the sent rows so the queue stays compact. Failed and pending rows are untouched.

Parameters

None.

Response

{
  "success": true,
  "message": "Sent tells cleared",
  "deleted_count": 17
}

Errors

HTTPMessage
500Failed to clear sent tells

Example

# GET — easy browser/devtool testing
curl "http://localhost:8081/api/qmail/db/tells/clear-sent"

# Canonical POST
curl -X POST "http://localhost:8081/api/qmail/db/tells/clear-sent"

Related