After a big Windows update or upgrade, the old system is kept in C:\Windows.old. It can be 15 to 30 GB.
1. Make sure the new Windows works well and none of your files are missing (check Windows.old\Users if you're unsure).
2. Open Settings, System, Storage, Temporary files.
3. Tick "Previous Windows installation(s)" and click Remove files.
4. Or search "Disk Cleanup", click Clean up system files, and tick Previous Windows installations.
Once deleted, you can't go back to the previous version. Windows removes it by itself after about 10 days anyway. Don't try to delete it by hand in File Explorer.