You can receive tax refunds while in bankruptcy. However, refunds may be subject to delay or used to pay down your tax debts. If you believe your refund has been delayed or offset you can check on its status by going to Where’s My Refund tool or by contacting the IRS’ Centralized Insolvency Operations Unit at 1-800-973-0424. The unit is available Monday through Friday from 7:00 a.m. to 10:00 p.m. eastern time.
Discharge: If you successfully complete your bankruptcy plan you will receive a discharge of debt. A discharge releases you (the debtor) from personal liability for certain dischargeable debts. Some taxes may be dischargeable. Whether a federal tax debt may be discharged depends on the unique facts and circumstances of each case. Consult your bankruptcy attorney to determine which tax debts may be discharged.
SOURCE: https://www.irs.gov/businesses/small-businesses-self-employed/other-types-of-bankruptcy-chapters-9-12-15