List<BuildResultSummary> results = client.getBuildResultsForProject( project.getId() );
for ( BuildResultSummary brs : results )
{
BuildResult br = client.getBuildResult( project.getId(), brs.getId() );
System.out.print( " Build Result [" + br.getId() + "] ended " + new Date( br.getEndTime() ) );
if ( br.getEndTime() > 0 && br.getEndTime() < purgeDate )
{
client.removeBuildResult( br );
System.out.println( " ...removed." );
}