Added doc deletion ref/refBy cleanups