/// <summary>
 /// Removes the current version of all assets that has been cached at the edge.
 /// </summary>
 /// <param name="cdnService">The <see cref="IContentDeliveryNetworkService"/> service instance.</param>
 /// <param name="serviceId">The service identifier.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="serviceId"/> is <see langword="null"/>.</exception>
 /// <exception cref="FlurlHttpException">If the API call returns a bad <see cref="HttpStatusCode"/>.</exception>
 public static void PurgeCachedAssets(this IContentDeliveryNetworkService cdnService, string serviceId)
 {
     cdnService.PurgeCachedAssetsAsync(serviceId).ForceSynchronous();
 }