Removing entries from call history programmatically

Hi guys, is someone aware of, and could please point me to, some documentation or example code about how to programmatically (C++ or QML) remove entries from the call history?