Implement 'Clear History' feature

Change-Id: I9c11349c0f7a7af690af58948b952cf1c7635382