In this blog we are going to clear the history items from
the path.
Path of History:
C:\Users\laja\AppData\Local\Microsoft\Windows\History
Clearing History:
/// <summary>
/// Clears all the
histories in the specific path.
/// </summary>
public void
ClearHistory()
{
//Gets the Special Folder
Environment.SpecialFolder
specialFolder = Environment.SpecialFolder.History;
//Gets the path of the special folder.
string path = Environment.GetFolderPath(specialFolder);
//Delete all the files from the histories.
DeleteAllFiles(new DirectoryInfo(path));

Join the conversation! Your thoughts help the community grow.