delete records from related and related_dataset when clearing source