u936293
u936293

Reputation: 16224

How to unlock a file locked in Visual Studio Online?

I have a file in Visual Studio Online (visualstudio.com) locked by a Microsoft account user from a PC both of which do not exist any more.

enter image description here

How do I remove the lock by Microsoft account H.....w?

Upvotes: 2

Views: 2688

Answers (1)

Thomas F. Abraham
Thomas F. Abraham

Reputation: 2162

Since the user account and PC are gone, the associated workspace should be deleted -- which will undo (lose) the pending changes, including the lock.

You can use tf.exe to delete the workspace. It's usually located under the Visual Studio install folder in Program Files(x86), or open a Developer Command Prompt for VS and it should be in the path there.

Something along the lines of:

tf.exe workspace /delete /collection:<VSOnline/Azure Repos URL> CUSTOMER-PC;H...w

The syntax is a little tricky sometimes -- docs are here.

Upvotes: 1

Related Questions