Skip to main content
POST
/
sender
/
cleardone
Clear sent messages
curl --request POST \
  --url https://api.wppfy.com/sender/cleardone \
  --header 'Content-Type: application/json' \
  --header 'token: <api-key>' \
  --data '{
  "hours": 168
}'
{
  "status": "cleanup started"
}

Authorizations

token
string
header
required

Body

application/json
hours
integer
default:168

Number of hours to keep messages. Messages older than this value will be removed.

Example:

168

Response

200 - application/json

Cleanup started successfully

status
string

Operation status

Example:

"cleanup started"