Clear methods for api and history

Signed-off-by: Lysander <lysandergc@gmail.com>