You indicate that you filed suit against the contractor. Did you file suit or a petition to remove the lien under Civil Code section 8480 et seq? If you filed the latter, the Court can order the lien removed.
This answer does not constitue legal advice, nor does it creat an attorney/client relationship. If you are seeking legal advice upon which you intend to rely, you should hire competent cousel familiar with this area of the law in your locale.
As stated below, it depends on what the suit was about. If you petitioned to have the lien removed, then the court can probably order it removed. if not, you should petition the court to have the lien removed under Civil Code section 8480. You will have to serve the petition and get a hearing date. The court will likely remove the lien at that point if the time to file an action to enforce it has expired or it is otherwise invalid.
In addition to a Civil Code 8480 petition for an order to release the lien, you can make a claim on the Contractor's License Bond, and after a judgment is obtained, you can submit a "construction related judgment" to the Contractor's State License Board who will suspend the contractor's license if the judgment is not satisfied.
Construction projects and the legal rights and remedies that flow from them are legally technical and factually intensive. This Avvo answer is not legal advice and should not be relied upon without further consultation with a qualified construction lawyer.
The answers provided are all correct. There are strict timelines within which a contractor must file a complaint to foreclose a mechanic's lien. If the deadline is passed, you can petition the court to release the lien and recover some costs and attorney fees. If you filed your own complaint against the contractor, I suspect it was for breach of contract or negligence or some violation of the contractor's license law. A petition to release the mechanic's lien will have to be brought separately if you didn't seek that relief in your complaint. I'm a lawyer in Palm Desert and can assist you should you desire.
DISCLAIMER: Please note that this answer does not create an attorney-client relationship, does not constitute legal advice and should not be relied upon, since each jurisdiction has different laws, each situation is fact specific, and it is impossible to evaluate a legal issue without a comprehensive consultation and review of all the facts and documents at issue.