WD Discovery JavaScript error

When I boot my PC I get this JavaScript error. I have uninstalled & reinstalled WD Discovery and it keeps happening. Any help to sort this out would be gratefully received.

Hi @rockyarsenal,

Have you opened a Support Case? If not opened, for more information, please contact the WD Technical Support team for the best assistance and troubleshooting:

how tf do you uninstall it it give java errors and wont uninstall WTF

Maybe something like this.

‎Feb 09 2021 11:34 AM


  1. Open Control Panel > Uninstall a program

  2. Locate latest Microsoft Visual C++ (64bit) and click on Change …

  3. Click on Repair

  4. Enter your Admin credentials to perform repair

  5. Once repaired Launch WD Discovery app to make sure it works

  6. Proceed to uninstall if needed.

Other ideas…

nope had to manually uninstall it registry editor force closing explorer deleting the wd software thru command prompt… going thru windows uninstall threw up javascript errors too it was a 2 hour process… thanks wd.

There is a complete detail process in the Knowledgebase of uninstall for those who are still having trouble uninstalling. There is also a 2GB cache that can take up disk space in the host PC that should be deleted if the uninstall did not go to completion.

Delete the following WD Discovery folders if they are present on the system.

    C:\Users\USERNAME\AppData\Local\Western Digital\WD Discovery
    C:\Users\USERNAME\AppData\Roaming\WD Discovery
    C:\Users\USERNAME\AppData\Roaming\Western Digital\WD Discovery
    C:\Users\USERNAME\AppData\Roaming\Western Digital\WDDesktop
    C:\Program Files\WD Desktop App

Reboot the computer

Uninstall WD Discovery

  1. Safe Eject and disconnect any and all external USB Drives from the computer.
  2. Start and Open WD Discovery.
  3. Click Storage in the Navigation Menu.
  • If a My Cloud Home is being used:
    • Click the Gear Icon to the right of the My Cloud Home.
    • Click Sign Out.
  1. Click the Gear Icon in the Navigation Menu.
  2. Click Quit in the bottom right hand corner of the app screen.
  3. Press Control+Alt+Delete to access the Windows Task Manager.
  4. Stop all Western Digital software processes that are running including.
  • WD Discovery
  • WD Device Agent
  • WD Desktop App
  • WDDiscoveryMonitor
  • wdsync
  1. Open Windows Control Panel and go to the Programs screen.
    For more information, please refer to Microsoft Article 13764: Where is Control Panel?
  2. Locate and select WD Discovery


  1. Select Uninstall/Change or right click and select Uninstall/Change


  1. Select Uninstall