<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_unique_identity(db, uuid):
 """Remove a unique identity from the registry. Function that removes from the registry, the unique identity that matches with uuid. Data related to this identity will be also removed. It checks first whether the unique identity is already on the registry. When it is found, the unique identity is removed. Otherwise, it will raise a 'NotFoundError' exception. :param db: database manager :param uuid: unique identifier assigned to the unique identity set for being removed :raises NotFoundError: raised when the unique identity does not exist in the registry. """

    with db.connect() as session:
        uidentity = find_unique_identity(session, uuid)

        if not uidentity:
            raise NotFoundError(entity=uuid)

        delete_unique_identity_db(session, uidentity)