How to change the location of the documents folder in Windows 10?

So far I have given up the idea of doing this, because some programs save their data in the documentы folder without any notice:
2023-04-30--19-17-15