Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to remove a large number of specific items from the Chrome history.

I can search for my term, but then I have to click a lot of checkboxes just to remove every item. Is there a way to make this process faster?

share|improve this question
Open the sqlite database C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\History with your favorite sqlite database browser while Chrome isn't running. Use SQL queries to remove records. –  Zoredache Jan 31 '14 at 0:34
@Zoredache You should post that as an answer. –  Oliver Salzburg Jan 31 '14 at 9:04

4 Answers 4

up vote 6 down vote accepted

You can also Shift+Click to select multiple items in history and remove them at once.

This works as of Chrome version 33, and possibly earlier versions.

  1. Perform a search to bring up the relevant history items
  2. Click the first result
  3. Shift+Click the last result
  4. Click Remove Selected Items
share|improve this answer
  1. Perform a search to bring up the items you want to remove the history.

    enter image description here

  2. Open the Chrome Developer Tools console by pressing Ctrl+Shift+J.

  3. Make sure to select the history-frame frame as the target frame for the console.

    enter image description here

  4. Execute the following snippet in the console (by pasting it and pressing Enter) to mark all checkboxes in the history.

    var checkboxes = $$( "input[type='checkbox']" );
    for( var i = 0; i < checkboxes.length; ++i ) {
      checkboxes[ i ].checked = true;

    Don't forget to double-check the selection and uncheck items which you don't actually want to remove!

  5. Clear the selected items from your history by pressing the Remove selected items.

    enter image description here

share|improve this answer
You should accept your own answer, it's better :) –  buffer Jan 10 at 19:22

Here's something I wrote in JavaScript.. It works through the Console Debugger.. I tried using it in a bookmark but I get no response from the page..

In your address bar, type in the following address to to the meat of the history page.. It's normally loaded in an iframe, with the left-side menu loaded in another frame..


Next, load your Console Debugger/Viewer by pressing CTRL+SHIFT+J

In the console type the following

function removeItems(){ var inputs = document.getElementsByTagName('input'); var removeButton = document.getElementById('remove-selected'); var totalInputs = inputs.length; for(i=0; i<totalInputs; i++){ thisInput = inputs[i]; if(thisInput.getAttribute("type") == "checkbox"){thisInput.setAttribute("checked","true");}if(i==(totalInputs-1)){setTimeout(function(){if(removeButton.getAttribute("disabled")!==null){removeButton.removeAttribute("disabled"); removeButton.click(); document.getElementById("alertOverlayCancel").click(); }},500);}} }


var clearAllFiltered = setInterval(function(){ if(document.getElementById("loading-spinner").getAttribute("hidden")!==null) { removeItems(); } },2000); //adjust Time Here (1500 [millisec] = 1.5sec)

This removeItems function will select loop through all form inputs and check all checkboxes, enable the "Remove Selected Items" button and click it. After a half-second, it'll check if the "Are You Sure" prompt is displayed and, if so, click the "Yes/Remove" button automatically for you so that it will load a new list of items to do this process all over again..

The item is looped using the variable "clearAllFiltered", which is a setInterval loop, which is checking for the status of the "Loading" screen..

To stop the loop, you can either refresh the page by pressing the F5 key or clicking the "refresh" button, or type the following into your console debugger/viewer:


The loop, named "clearAllFiltered", runs every 2.0 seconds. You may have to tinker with that by adjusting the millsecond parameter in the setInterval function

"....ribute("hidden")!==null) { removeItems(); } },2000);" //adjust Time Here
share|improve this answer

You can take the hacker shortcut injecting JavaScript code.

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:

var inputs = document.getElementsByTagName('input');
for (var i = 0; i < inputs.length; ++i) {
  if (inputs[i].type == "checkbox"){
    inputs[i].checked = true;
document.getElementById("remove-selected").disabled = false

Step 4 Hit the 'Remove selected items' button.

share|improve this answer
@OliverSalzburg actually if you look carefully is necessary to enable the remove-selected button. Nobody was doing that in the previous answers. –  Fabricio PH Aug 5 '14 at 15:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.