Hello there, Timmayy24.
The following Knowledge Base article provides the information you're looking for:
Important: This procedure will completely erase your hard drive. If you have installed Microsoft Windows using Boot Camp, or have multiple partitions, this procedure will erase the partition you select.
Thanks for reaching out to Apple Support Communities.