Add support for clearing retained logs