public async Task DeleteParticipantAccountAsync(string username) { if (await CheckUsernameExistsInAdAsync(username)) { _logger.LogDebug("Attempting to delete AD User {username}.", username); await _userApiClient.DeleteUserAsync(username); _logger.LogDebug("Successfully deleted AD User {username}.", username); } if (await CheckPersonExistsInBookingsAsync(username)) { _logger.LogDebug("Attempting to anonymise person in Bookings API {username}.", username); await _bookingsApiClient.AnonymisePersonWithUsernameAsync(username); _logger.LogDebug("Successfully anonymised person in Bookings API {username}.", username); } }