We are trying to format the disk in many ways, but it is not working every time. Using Diskpart or cmd can help here.
Type cmd in the Run
Type diskpart
Type list disk to see the disks
Type select disk (Disk Number) which you want to clean or format
Type clean
Please remember one thing, keep a backup of your files stored on that disk. After applying these commands, your HDD or the disk will be cleaned, and no data will remain there.