senior lender foreclosing on junior lender

if a senior lender is foreclosing on a house which the junior lender has already forclosed on and currenly owns it via a trustee deed. what will happen to the junior lenders trustee deed once the house is forclosed on by the senior lender. will this trustee deed be wiped?out since it is from a junior lender?

Exactly right. Also note that if a 3rd party had bought the junior loan, they too would be wiped out by the senior loan’s foreclosure.

thank you for the clarification.