My mother once had an infestation of woolly bears (the larvae of the carpet beetle). Moth larvae - Very difficult to get rid of. Moth balls smell awful. And this will only stop future moths. You will have to find the little devils who are busy eating your carpet and to do that you will have to go all over the carpet. Might be easier to get a new carpet, as Euphemia says, and get it treated before you put the furniture back, just in case there are any more hanging around. I think they probably only eat woollen carpets and not stuff like nylon which is man-made, but I am not sure of my facts here. You might be able to google it, or I am sure there are lots of experts on AB who will tell you.