private void Delete_Group(string groupname) { ADGroup group = null; try { this.logger.Warn("Rolling back action... Deleting group " + groupname); group = new ADGroup(StaticSettings.Username, StaticSettings.DecryptedPassword, StaticSettings.PrimaryDC); group.Delete(groupname); this.logger.Warn("Successfully deleted " + groupname); } catch (Exception ex) { this.logger.Error("Failed to roll back action... Deleting group " + groupname, ex); } }