A bankruptcy discharge is what wipes out your debt and gives you a fresh start. It also acts as a permanent injunction against creditors from coming after you to collect that debt. Any creditor violating the discharge injunction can be subjected to serious sanctions by the bankruptcy court. This discharge wipes out different kinds of debt, depending on the type of bankruptcy you file, and there are exceptions.
A chapter 7 discharge wipes out most types of debt, but there are exceptions you should be aware of. The same is true for chapter 13. Check out this article here for more information on the bankruptcy discharge.