removeAll function