Removing discarded record files from log