A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.
Assuming that you are using OneNote 2016 and not the Windows 10 app (just called "OneNote"), here are instructions to "unshare" a notebook from within OneNote:
https://support.office.com/en-us/article/stop-s...
You can also open and login to oOneDrive using your web browser. To see who you have shared notebooks (or other files) with, click on "Shared" in the left menu. To "unshare" a notebook, right-click it and select "remove from shared list".
As far as I know, setting an expiration date for shared files (links) is a premium feature and not available in the free OneDrive. I'm ,not sure if this works for notebooks as well, but if so, you would most likely have to create she sharing link from within your browser on the OneDrive portal. There is no such option in OneNote 2016 nor in the Windows 10 app (yet?)