Improved efficiency for models with associations

Clear the 'modified' and 'updated' fields before deleting so they will
be updated.