My iMac desktop has Flash/SSD (late 2019).

Previously, I had an iMac with just the standard hard drive (not Fusion or SSD). Whenever a new OS was released, I would do I clean install i.e. backup my Home Folder, secure erase the drive, install the new OS, and then migrate my Home Folder contents (as per instructed).

I like the idea of cleaning up any straggly bits and take the drive back to its factory condition before installing a new OS. Is there some form of similar Clean Install routine for my current hard ware? Is that something which no longer can be done OR no longer is necessary?

Many thanks,