Ask a questionAsk a question
 

AnswerCannot delete build definition

  • Monday, October 26, 2009 11:03 PMA n t Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    I'm trying to delete a build definition in my Team explorer>Builds folder. I have been able to do so in the past but not now.

    I now get the error:

    TF215032: Build Definition\ProjectName\Project_CI cannot be deleted because builds still exist for this definition. Delete all completed builds for this definition and try again.

    I've tried deleting all associated builds in TFS Build explorer but that didn't fix the issue.
    I deleted the physical build folders from the build server. (For specific builds, not the actual build drop folder)
    I then tried deleting the folder in the Source Control Explorer>TFS Project>Team Build types & checking in, but still no go.


    What has changed: Yesterday we removed all the logs out of our C: & placed them on our D:. We also successfully redirected all new logging to D: (This was a space issue on C:)

    Is deleting builds reliant on the log files? I really hope not :P 

    Any idea as to why I cannot delete a build definition would be most appreciated
    @nt

Answers

  • Tuesday, October 27, 2009 4:54 PMJehan33 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    Whenever associated builds will be deleted for a Build defination from TFS Build explorer it will delete the build entries from tfs_build table in TfsBuild database.

    Can you please check that all associated build entries for Build defination has been deleted from database or not.

    If not then you can delete those entries and then try deleting the build defination.
    • Marked As Answer byA n t Tuesday, October 27, 2009 10:39 PM
    •  

All Replies

  • Tuesday, October 27, 2009 4:54 PMJehan33 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    Whenever associated builds will be deleted for a Build defination from TFS Build explorer it will delete the build entries from tfs_build table in TfsBuild database.

    Can you please check that all associated build entries for Build defination has been deleted from database or not.

    If not then you can delete those entries and then try deleting the build defination.
    • Marked As Answer byA n t Tuesday, October 27, 2009 10:39 PM
    •  
  • Tuesday, October 27, 2009 10:39 PMA n t Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks Jehan,

    As you suggested, I lookde at the DB & found the builds still existed. I couldn't see them in the front end as I was only filtering on 'Today' (I'm new to this). When I deleted those builds it worked fine.

    Thank you very much for your input. It fixed the issue!
    @nt