Erase old components in a new file