PLFM-1700 Implement purging at the Java client