If you want to delete a file, you would use the rm command (e.g., rm myfile). As you might suspect, you can only remove files ...
Windows offers the command line tool Diskpart, which you can use to reliably delete an entire hard drive, among other things.
The first place to start when cleaning up your Ubuntu system is to check the programs you have installed and then remove them ...