To uninstall XBox, you will have to use Powershell as Windows Apps & features will not allow you to uninstall default applications.
Windows Key+X > Windows Powershell (Admin) > Copy the below, paste into Powershell > Enter
Get-AppxPackage -allusers *XboxApp* | Remove-AppxPackage
But to create space on your computer, I will suggest following as only removal of Xbox and some applications may not give you sufficient amount of space.
- Use Storage Sense to delete unnecessary files
Type Storage in Windows Start Search Box > Click Storage > Click Change how we free up space > Down below there is button Clean now under Free up space now which you should press
- Use Disk Cleanup
Type Disk Cleanup in Windows Start Search box > Click Disk Cleanup > Check relevant options (you can also clean system files)
- Analyze disk space
You should analyze your existing space with help of third party softwares and remove un-necessary files
TreeSize Freeware version - https://www.jam-software.com/treesize_free/
WinDirStat (Released under GPL license) - https://windirstat.net/download.html
- Check for log files in CBS directory
Go to C:\Windows\Logs\CBS > Check the size of CBS.Log and if size is huge >
Type services in Windows Start Search box > Click Services > Scroll down to find the Windows Modules Installer service and double-click on it > Set its startup type to Manual > Reboot your computer
Go to C:\Windows\Logs\CBS > Delete all of the files in the CBS folder > Reboot your computer > Then go back into the Services App and set Windows Modules Installer Service back to Automatic Startup
- Microsoft has also some suggestions to improve disk space.
https://support.microsoft.com/en-in/help/12425/...
- You can also review following
https://www.windowscentral.com/best-7-ways-free...
Disclaimer - This post contains reference to non-Microsoft websites and there may be ads on the page for products & services including products frequently classified as a PUP (Potentially Unwanted Product). Please thoroughly research any product / service advertised on the page before you decide to use them. Your discretion is very much advised.