If you primary deficit is positive, you need to borrow money even if all your creditors decided to pardon your old debts.
Fernando Henrique Cardoso made a law that mayors, governors and president are criminably liable for reaching the end of their term with primary deficit (thus putting the next person in charge in trouble).
Dilma Rouseff in 2014 had a primary deficit of positive 10 billion (meaning the government would need to borrow 10 billion more than usual).
She circunvented this by pulling a ugly stunt on the congress (she sent a law to the congress, where the law said that some of government spenditure "don't count" toward the balance, then she threatened to not sign the bill that allow congressmen to spend some federal money to help their homebase unless the congress approved her law)