Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
PRB: DeleteUrl() Does Not Delete the Internet Explorer History Folder Entry
Article ID: 327569 - View products that this article applies to.
This article was previously published under Q327569
After you call the IUrlHistoryStg::DeleteUrl method for a URL, the URL entry still appears in the Internet Explorer History Shell folder.
Use the IContextMenu::InvokeCommand method to delete the items. This is similar to manually deleting the item. The disadvantage to this method is that you cannot disable the confirmation dialog box that appears.
The source code that follows demonstrates the resolution by deleting the first, top-level History Shell folder. Typically, this is the oldest day in the history (for example, Tuesday). You can modify the code to delete a more specific item.
The IUrlHistoryStg2::ClearHistory method clears the deleted history items from the Internet Explorer History Shell folder and internally. DeleteUrl is not designed to delete the Internet Explorer History Shell folder entries. Because many internal functions rely on this method, its behavior cannot be changed.
Steps to Reproduce the Behavior
For more information, visit the following Microsoft Developer Network (MSDN) Web sites:
IContextMenu InterfaceFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Article ID: 327569 - Last Review: December 25, 2006 - Revision: 2.1