link delete on class delete