public void deleteAlertingDefinition(AlertingDefinition alertingDefinition) throws IOException {
  String id=alertingDefinition.getId();
  AlertingDefinition local=existingAlertingDefinitions.remove(id);
  if (local != null) {
    Files.deleteIfExists(pathResolver.getAlertingDefinitionFilePath(local));
    eventPublisher.publishEvent(new AbstractAlertingDefinitionEvent.AlertingDefinitionDeletedEvent(this,local));
  }
}

public void deleteAlertingDefinition ( AlertingDefinition alertingDefinition ) throws IOException { String id = alertingDefinition . getId ( ) ; AlertingDefinition local = existingAlertingDefinitions . remove ( id ) ; if ( local != null ) { Files . deleteIfExists ( pathResolver . getAlertingDefinitionFilePath ( local ) ) ; eventPublisher . publishEvent ( new AbstractAlertingDefinitionEvent . AlertingDefinitionDeletedEvent ( this , local ) ) ; } }
deletes the alerting definition .
