dirPurgeConfig.setDirectoryType( "buildOutput" );
System.out.println( "Adding Directory Purge Configuration..." );
dirPurgeConfig = client.addDirectoryPurgeConfiguration( dirPurgeConfig );
System.out.println();
RepositoryPurgeConfiguration purgeConfig = new RepositoryPurgeConfiguration();
purgeConfig.setDeleteAll( true );
purgeConfig.setRepository( repository );
purgeConfig.setDescription( "Delete all artifacts from repository" );
System.out.println( "Adding Repository Purge Configuration..." );
purgeConfig = client.addRepositoryPurgeConfiguration( purgeConfig );
System.out.println();
System.out.println( "Repository Purge list" );