locked
Get-TfsChildItem -Deleted does not return deleted items

    Question

  • We want to run tf destroy on old deleted stuff.
     

    $tfs=Get-TfsServer -name http://mytfs:8080/tfs/defaultcollection

    Get-TfsChildItem $/ALM/Dev -Deleted -server $tfs


    In VS, Source Control Explorer I see several folders beneath that has been deleted but these are not returned from the query.

    Actually, there is no difference between

    Get-TfsChildItem $/ALM/Dev  -Deleted -server $tfs and

    Get-TfsChildItem $/ALM/Dev  -server $tfs

    Can somebody help explaining how this is supposed to work? 

    Thanks,

    Jorgen

    Friday, March 30, 2012 11:46 AM

Answers

  • Hi Jorgen, 

    Thanks for your post.

    I reproduced this scenario in my TFS Power Tools Power Shell console, the result same with your description.

    I executed:

              Get-TfsChidItem $/TeamProject –server $tfs  

              Get-TfsChidItem $/TeamProject–Folder –server $tfs  

              Get-TfsChidItem $/TeamProject–Deleted –server $tfs  

    They return the all the folders which under the team project, it seems that the –Deleted option not work in this command. 

    For this scenario, I suggest you submit it as a suggestion to Microsoft Connect Feedback portal at: https://connect.microsoft.com/VisualStudio. Microsoft engineers will evaluate them seriously. 


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us


    Monday, April 02, 2012 3:22 AM