That depends on whether you want to delete the entire history or specific messages.
I assumed you wanted individual messages/calls deleted, which was probably not a good assumption on my part.
kejlyCZ brings up a good suggestion if you want to delete the entire history for SMS or calls.
Whichever situation you need, there you go.