Delete orphan records in the new and edit flow.