Use the X button on the interface bar to delete the wooden wall and place a stone wall in its place. You get back half the resources used to build something when you remove it using the X button.