Hi,

Following directions from https://docs.espocrm.com/development/orm/, I do unrelate as follows in a Hook :

$entityManager...