We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

How to: Remove Another User's Lock

Visual Studio 2008

Use the tf lock command to remove a user's Team Foundation version control lock on a file. This allows for you or another team member to check out files that have been exclusively locked by another user.

If you must also remove the other user's pending changes, use the tf undo command. For more information, see How to: Undo Changes in Another User's Workspace.

If you must also delete another user's workspace, use the tf workspace command. For more information, see How to: Remove a Workspace.

Required Permissions

To undo an exclusive lock for another user, you must have the Unlock other user's changes set to Allow. For more information, see Team Foundation Server Permissions.

To undo another user's lock

  1. Click Start, click All Programs, click Microsoft Visual Studio 2008, click Visual Studio Tools, and then click Visual Studio Command Prompt.

  2. Type the following command and replace the arguments with the appropriate parameter information for your needs:

    tf lock /lock:none $/MyTeamProject/web.config

    For more information, see Lock Command.