Bad to remove the bacteria. Good to not spread invasive species like worms and such.
https://www.kellogg.northwestern.edu/faculty/qian/resources/...
First I'm doing an anaerobic phase and then taking the output of that, pH balancing it if necessary, then feeding it to composting worms I've been breeding. Then I take the worm castings from them and bag that up.
The initial source is really the problem. I'm taking local yard waste so it should be fine to redistribute locally, but sending it out further to other areas of the country could pose a problem.
Ideally the anaerobic phase of the composting process should kill any invasive species in the compost, but maybe it won't. I know typically people go for an aerobic composting process and bank on the heat killing any pathogens in the compost.
There's lots of things that live in soil. We don't have to help them spread.