I know this sounds like I want to destroy someones computer or something but here's what I want to do:

I want to make my own history eraser for IE and I tried to delete the temporary internet files and they are locked somehow. Also I want to know how to clear the history. Anyone got any ideas? thanks.