I think in the case of Utah it’s something beyond just wanting to spy on people. I think the LDS(Mormon) church legitimately wants to stamp out porn all together among it’s members. The first step to that is of course, getting a comprehensive list of everyone viewing porn, via ID collection. Then hand that list over to the LDS church, who can name and shame members they find on it.
Now, they probably will not be able do this everywhere, but, in Utah, it is absolutely with in their power given how much power it has over the state government.
Recursively force delete the listed directory, so not just delete the directory, but go through anything below and delete that too, and the / is the root directory. So it deletes everything.