When clearing nested records, use the standard delete code path.

This ensures we clear relationships and other foreign keys as required.
Merge pull request #756 from hudmol/nested-record-update-fix

When clearing nested records, use the standard delete code path.