Purges the error history at the domain level. The purge can be done synchronously or asynchronously.
void purgeErrorHistory(ErrorHistoryPurgeOptionVO purgeOption, Boolean synchronous) throws SUPAdminException;
If successful, purges the error history using the schedule. If unsuccessful, returns SUPAdminException.
ErrorHistoryPurgeOptionVO purgeOption = new ErrorHistoryPurgeOptionVO(); purgeOption.setDaysToPreserve(10); supDomain.purgeErrorHistory(purgeOption, false);