You've probably stumbled upon this researching how to remove the Xbox Game Bar. This gist includes a few different methods you can try. Please note that you might not have some of these options depending on the version of Windows 10 you're using.
Uninstalling/Removing the Game Bar (old Windows 10 build GUI options)
(this does not seem to be an option on any recent Windows 10 build)
- Press Windows Key or click on the Start menu.
- Start typing
Game Bar, until you get the Xbox Game Bar app to appear in the results.
- Right-click on the app and pick
Yesto the prompt, and wait for the process to finish.