Once a OneDrive file has been shared with others, that access can be revoked at any time by managing the permissions. Removing access will prevent users from opening documents previously shared with them.
When you share a file uploaded to OneDrive, you give another person access to view and/or edit that file. Any changes that person makes will be visible to any others who have access to the file.
How to Remove Access in OneDrive for Specific Users
Next to the desired file, click on the vertical ellipsis
In the drop down bar, select Manage access
In the sidebar to the right, click on the down arrow next to the list of users with access
Click the X next to the user to remove access
Click Remove to confirm
How to Remove Access in OneDrive for All Users
Next to the desired file, click on the vertical ellipsis
In the drop down bar, select Manage access
In the sidebar to the right, click Stop sharing
Click Stop sharing to confirm. This will remove access for everyone that currently has access.