A Microsoft file hosting and synchronization service.
For a OneDrive Personal folder, an “Anyone with the link” permission can be removed from the folder's sharing settings:
Go to OneDrive.com and sign in.
- Open My files and select only the affected folder.
- Select Manage access.
- Open the Links section.
- Locate the Anyone with the link entry.
- Select Remove link and confirm the deletion.
Since you mentioned that the link disappears but immediately reappears after refreshing, I would first test this directly from OneDrive on the web in an InPrivate/Incognito window, rather than through File Explorer or the OneDrive desktop application. You can also try another browser to rule out cached OneDrive web data.
As an additional test, if you do not need to preserve any other sharing permissions on that folder, you can use Stop sharing from Manage access.