I found a solution, we need to clear the cache in the next / other digest cycle. Using $timeout , we can achieve this. Something like that.
$scope.logout = function(){ $location.path('/signin') $timeout(function () { $ionicHistory.clearCache(); $ionicHistory.clearHistory(); $log.debug('clearing cache') },300) }
Edit: give a few milliseconds to clear functions on it, works great.
source share