Use API to Purge One Chat Message?

What I want to do is purge a single message, not all the messages for a user (which is trivially simple as mentioned).

When for example someone posts a link, it seems MooBot can purge just that message.

I want to know how to purge a single message.