Empty a mailbox's Spam
Queues permanent deletion of the threads currently in Spam and returns their count. Requires thread:write. A thread restored before processing is skipped.
POST
Queues permanent deletion of the threads currently in Spam and returns their count. Requires thread:write. A thread restored before processing is skipped.
apiKeyheader
x-api-key<token>id*stringMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$MailboxEmptySpamAccepted
application/json- response
count*integerRange
0 <= value <= 9007199254740991import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.mailboxes.emptySpam({
"id": "example"
});Example Response
{
"count": 0
}