Why are drugs that target cell wall synthesis useful?

Without the cell wall, the bacteria will be susceptible to destruction by chemicals outside the plasma membrane (which is just inside the cell wall of bacteria), and it will not be able to survive.