Remove relations when a involved layer gets deleted