Microsoft Explains Windows' USB Device Memory Mechanism
Windows systems retain registry records for USB storage devices even after they are unplugged. Microsoft states this mechanism has been in place for over a decade.

Microsoft has clarified the behavior of its Windows operating systems regarding the retention of information for USB storage devices, even after they have been physically removed. According to reports from technology outlet Windows Latest, the system creates a registry entry for each connected USB storage device, and these entries persist even when the device is unplugged. This mechanism, sometimes referred to as "non-present devices" or "ghost devices," has been part of Windows for more than ten years.
The issue gained attention on social media when a user posted about finding evidence that Windows retains information about USB drives, even after they were seemingly deleted. This sparked privacy concerns and questions about data handling. Microsoft's official support documentation indicates this functionality is intended to facilitate quicker device identification and reconnection.
The system utilizes USBSTOR registry keys to record information about mass storage devices managed by the Usbstor.sys driver. The recorded data includes the device name, hardware identifiers, and timestamps for when the device was first connected and last removed. Unlike storage devices, other USB peripherals like keyboards or cameras are not covered by this specific mechanism.
Users can remove these registry entries through Device Manager by enabling "Show hidden devices" and then uninstalling the grayed-out device entries. IT administrators also have access to Microsoft's DevCleanUp tool for batch removal. Similar device management practices are common across major operating systems, including Linux and macOS.