Fixing the Subversion user does not own lock on path error

I am trying to delete a folder within my Subversion repository. My TortoiseSVN client gives me the following error message when I try to commit this change:

Commit Failed (details follow):

  • When does svn BASE become equal to the HEAD
  • Using SVN and Git side-by-side
  • Synchronizing code with two subversion repositories
  • Windows Pre-commit hook for comment length Subversion
  • How do I Unignore a file in TortoiseSVN?
  • Sharing Files in SVN
  • User {username} does not own lock on {path}

    page {filename} currently locked by {another user}

    If you want to break the lock, use the ‘Check for modifications’ dialog.

    I do want to break the lock and delete the folder, but I can’t see an obvious way to do it from the Check for Modifications folder. Does anyone have any suggestions?

  • Git: How to merge a small, but very old branch?
  • IntelliJ and svn:ignore
  • Need to restore a deleted branch in Subversion
  • Associating existing Eclipse project with existing SVN repository
  • How do you push your commits to an SVN repositor?
  • How do I avoid large number of svn:mergeInfo when merging trunk to a feature-branch in SVN
  • 2 Solutions collect form web for “Fixing the Subversion user does not own lock on path error”

    From Pedro’s answer, I was able to figure out how to do this from within Tortoise SVN. You can find the full instructions in this tread on the SVN Forum:

    The short version is:

    1. Open the Check for Modifications dialog
    2. Click the Check Repository button
    3. You should now see the name of the user that holds the lock in the Lock column (you may need to scroll right to see this column in your list.)
    4. Right click on the file with the lock. You should now see the Break Lock option on the context menu.

    If you have a lot of files, you can select all files in your list (Ctrl-A) and apply the Break Lock for everything, as described here:
    How can I release locks in Subversion recursively?

    An administrator can break the lock. See “Breaking and Stealing Locks” from this page.

    Git Baby is a git and github fan, let's start git clone.