Fixed delete all histories.

Fixed delete all histories.