Delete elements from data object when deleting from UI