I don't think that's what you want.
Does the device have partitions? If so, you want to format them like
not /dev/sda which refers to the whole device. If there's stuff in other partitions on that drive you care about, I hope it's backed up.Code:sudo mkfs -t ext4 /dev/sda2