sharepoint-onlinesharepointdocumentlibrary

Is there a way to remove an existing SharePoint (Online) file lock?


We are getting the locked for shared use message when trying to upload/checkout a file in a SharePoint library.

The user that is not online at the moment. I tried removed her sharing permissions on the file and its still shows she is editing it (upper right corner of the document).

Is there a way to completely remove existing sharing locks on a file so we can upload a new version of the file?

Ideally we would like way to do this with the UI. But any ideas how remove all existing locks with code on the API would also be helpful.


I found that it was not easy to remove the lock cleanly. Basically the only way to remove the type of we experienced was to delete the file and re-add


Solution

  • Easiest way to do this is to delete the file then restore from recycle bin.