Remove deleted references