Use API to Purge One Chat Message?

You can use “.timeout 1” which will timeout for one second.

All timeouts send a CLEARCHAT for a username, which replaces their preceding messages with in the chat client.