If you have a mechanics lien discharge bond, then the foreclosure is against the bond and not the real property.
You should consult a local attorney familiar with the NY lien law.
If this answer was helpful, please mark it as helpful or as a best answer. This answer is for general education purposes only. It neither creates an attorney-client relationship nor provides legal guidance or advice. The answer is based on the limited information provided and the answer might be different had additional information been provided. You should consult an attorney.