Add feature to prune deleted activities