SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can a site administrator remove a short term lock on a SPListItem.SPFile object? This happens when a user opens a Office document for editing from a list without doing a checkout. If the user does not close the document an administrator cannot remove the shortterm lock.

At the moment, i want unlock that SPFile. Please help me!

share|improve this question

migrated from Jul 3 '12 at 13:45

This question came from our site for professional and enthusiast programmers.

MS recommends waiting 10 mins or rebooting the server.

Sometimes (mostly) that won't work so try out this code.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.