How to clear all page history when user logout

Gud morin please how can I clear all history wen user logout tried reloadAll seams to clear only the last history

Can you provide some code ?