To eliminate the larvae of the carpet beetle, you will have to thoroughly clean and vacuum all infested areas. You may also need to use insecticides, pest fumigation bombs, or natural insect killers such as diatomaceous earth to eradicate these persistent larvae.