Como Formatear Un Disco Duro Que Tiene Particiones

The tool would have to know which applications are already installed, what software installs are used (flatpak, snap, deb etc). Given the fragmentation and different folders linux apps are installed in that might be difficult to accomplish.