reformat
🇺🇸
/ˌriːˈfɔːrmæt/
🇬🇧
/ˌriːˈfɔːmæt/
to change the structure or layout of something, especially a computer file or storage device
I had to reformat my computer's hard drive after the virus attack.