I tried to start up my computer and got a flashing file with a question mark. So I held down the ⌥-key on boot and brought it into recovery-mode. After going through the different options I went
A Step by Step Guide to How to Wipe a Mac Clean
How to repair a Mac disk with Disk Utility - Apple Support
How to check storage on Mac with built-in tools
macos - How to fix Disk Utility, About This Mac, and Finder that disagree on hard drive space usage? - Ask Different
How to install macOS Sonoma on a different partition of your Mac