how do i removed orphan linked material
You can delete the material by right-clicking on it and selecting delete from the pop-up menu. This won't affect them in the other file, it just removes them from the one you are working on.