If you are the sharer, you can cancel the share anytime.
After you cancel the share, the shared file or folder is removed from other recipients' Shared with Me page. Other recipients cannot recover the file or folder.
Perform the following steps to cancel a file or folder share:
Alternatively, you can right-click the blank area to the right of the file or folder and choose Share or click Share above the file list to go to the Share window.