Are you sure you really wish to erase windows totally ?
In that case just boot from Ubuntu install media .
Check the install media to be sure that it is not broken.
When choosing the partition let UBUNTu use the entire disk
And that is it
Or do you prefer a dual boot ?
Meaning installing Ubuntu along side with UBUNTU