'Clear the participant\'s national identity record for a given country.
:param int country_id: an ``id`` from the ``countries`` table'

def clear_identity(self, country_id):

    with self.db.get_cursor() as cursor:
        identity_id = cursor.one(u'\n\n                                                                DELETE\n                                                                        FROM    participant_identities\n                                                                    WHERE    participant_id=%(participant_id)s\n                                                                            AND    country_id=%(country_id)s\n                                                    RETURNING    id\n\n                                                ', dict(locals(), participant_id=self.id))
        payload = dict(id=self.id, identity_id=identity_id, country_id=country_id, action=u'clear    identity')
        self.app.add_event(cursor, u'participant', payload)
        self._update_has_verified_identity(cursor)
