In Google Chrome, is it possible to delete all search history that matches a specific query (for example, en.wikipedia.org)?
migrated from webapps.stackexchange.com Sep 28 '12 at 4:56
This question came from our site for power users of web applications.
Step 1 Since Chrome history is queried inside a iFrame, we have to visit: chrome://history-frame/ (copy and paste URL)
Step 2 Do the search query.
Step 3 Open the Chrome console(F12 or CtrlShifti or ⌘⌥i) and execute:
Step 4 Hit the 'Remove selected items' button.
Actually this deletes the elements in the current page. I might try to extend it, but it's a good starting point. Read the full article in my blog.
thats simple & easy
search for what you want to remove select first one now scroll to latest result press shift & choose latest one now all matches are selected and you can remove them together.
It can be done, and it's not too difficult. You can even query your Chrome history using SQL. (Maybe Firefox too: see below. Of course, the appropriate file path will have to be changed).
First of all, you need to locate the Chrome History file. This is, on my system, in
which ought to translate in a more general
In there, you will find a "History" file. It is a SQLite3 file, and to manipulate it, Chrome has to be closed. If you make a mess of it, delete the History file and start anew - it's just as if you had cleared Chrome history.
Then, rename the file to
In the URLS table, you will find the URLs you have visited. For example I can run the query:
to view all occurrences of 'meetup' in either the host or pathname part of the URLs I visited. Or I could search for pr0n, or... anything at all, as long as I adhere to SQL syntax.
You can even use the other information to run the query, for example the time of last visit. Only remember that you need to convert the dates to Chrome time, which is the number of microseconds elapsed from January 1st, year of our Lord 1601. On a Unix box, typing
For example, select visits after October 1st, 2013:
To delete, just replace
(In case, the "Archive History" file holds the last history archived by Chrome).
When you're done, if needed, rename back the file to "History".
You need a command-line SQLite utility such as
Only remember that this erases your history on your instance of Chrome. If, for example, you use a proxy, and that proxy keeps logs, all those URLs will be still available in the logs.
UPDATE: Also, if you're using some brain-dead SQL tool that requires the file to have an explicit and known extension, you will have to perform an appropriate RENAME before starting operations, and another to put things back in order when you've finished.
Anyway, once this is done, doubleclick on the script icon and hey presto!, your Chrome history is sanitized. Should work with Firefox too: I saw SQLite3 files in there. Timestamps might be in some other time reference frame, though (possibly plain Unix), so check the water before jumping in.
And then there's cookies.
But you'll have noticed, in the Chrome data directory, other files, one of which is named Cookies... :-)
No, that is currently not supported by Chrome itself.
Though, extensions can request access to your history data. So it would be possible for an extension to fulfill your needs. I do not know of such an extension myself, but a small search, made me find this one:
Possibly that extension can do what you request.
Just use Chrome with the url : chrome://history/#e=1&p=0
You may have to copy/paste it into your url bar.
In the Chrome bar try searching for the history item you want deleted. Once it appears in the results, scroll down to it using arrow keys (even if it is the first item in the list) and press Shift + Delete.
Use this extension in Google Chrome: History Calendar
Its exactly what I was searching for... it makes history deleting etc just like firefox i.e. fast and smooth. If you have over 2000 history marks for sites like amazon.com, google chrome history viewer will take ages (go page by page), but in firefox history window (or using the above mentioned chrome extn), you can select all 2000 and delete in one go