added functionality to forget whole directories