Microsoft has made it difficult to easily uninstall built-in programs from Windows. Apply the following instructions on how to uninstall Xbox Game Bar in Windows 11. The following is a representation of how to remove it using the settings app: Some older versions of Windows may offer the option to uninstall when you right-click the Xbox Game Bar from the Start menu. In the "Start" menu, enter "Xbox Game Bar," then click the Xbox Game Bar program and select "Uninstall." Since the Uninstall button is disabled in subsequent Windows 10, Xbox Game Bar cannot be deleted from those versions of Windows 10.
It's a right arse for how many games it crashes, and is one of the first things I remove on any fresh windows install