On clear snapshot first then remove history
On clear snapshot first then remove history