Clear printer and scanner list

Is there a way I can clear the list of printers from Printers and Scanner section of Windows 11?

Yes, you can;

  • Remove printers via Settings > Bluetooth & devices > Printers & scanners.
  • Control Panel: Use Control Panel > Hardware and Sound > Devices and Printers.
  • Print Server Properties: Optionally clear drivers via Print server properties > Drivers.
  • Command Prompt/Powershell: Use wmic printer commands to remove printers programmatically.

Hope this will fix!

Can you elaborate on the Javascript way of clearing the list?