bankruptcy is a thorny issue and for many a tough decision. One of the bad things about the IRS is their liens survive bankruptcy in most cases. Here’s an interesting discussion about this question.
A lot depends on if there’s any equity in the asset that is securing the lien. If there isn’t then sometimes you can get the IRS to realease it.