How to remove all Modern Apps from Windows 8.1, freeing up disk space

Run the following command in PowerShell as Administrator and restart the computer when it's done: Get-AppxProvisionedPackage -Online | Select-Object -ExpandProperty PackageName | ForEach-Object { Remove-AppxProvisionedPackage -Online -PackageName $_ -ErrorAction SilentlyContinue }