web.whatsapp.com
WhatsApp — Clear chat
Input
name requiredExact chat/contact/group name to clear (from get_inbox).
keepStarred optionalKeep starred messages instead of clearing them too. With this set the chat does not end up empty, so the emptiness verification is skipped for that branch.
Default: falseOutput
cleared requiredrecipient requiredverified_empty optionalTrue when the chat was re-read after clearing and held no message rows. Null when keepStarred was set, since the chat legitimately keeps its starred messages.
messages_before optionalMessage rows present before clearing, as evidence the chat was non-empty and the clear actually did something.
