I am trying to use the tf.exe destroy
command to remove the history for a branch, and get error TF14127
which means
cannot destroy because a file is being used by a shelveset.
Destroy command being used is:
tf.exe destroy $path /keephistory /startcleanup /silent /noprompt /stopat:D01-08-2018
So I try to delete the shelveset with tf vc shelve delete "shelveset-name;username"
, but that returns
the shelveset cannot not be found
So, I look for it using tf vc shelvesets /owner:"username"
, and this is where I finally get to the root cause, with
TF14045: The identity username is not a recognized identity.
So I ask my domain admin guy, and sure enough that user was deleted (not just disabled) in a cleanup last year ...
So, am I stuck, or is there a way to delete a shelveset for an invalid identity?
NOTE: we are using TFS Server 2018 R2, and the Tf.exe is 2017 (Version 15.129.27825.1).