People have tried this and it doesn't work. The problem is mobile genetic elements like plasmids and transposons. What happens is the antibiotic resistance genes cluster together and so the selection for one selects for all the others. Even if you go back to an antibiotic that hasn't been used for decades the resistance hangs around. Bacteria really are formable.