/// <inheritdoc /> public async Task DeleteCatalogEntries(Guid catalogUuid, short[] keys = null, CancellationToken cancellationToken = default) { var uri = $"catalogs/{catalogUuid}"; if (keys == null || keys.Length == 0) { await _RestClient.Request(RequestBuilder.CreateDelete(uri), cancellationToken).ConfigureAwait(false); } else { foreach (var keyList in ArrayHelper.Split(keys, RestClientBase.MaximumPathSegmentLength, RestClientHelper.LengthOfListElementInUri)) { var restriction = $"/{RestClientHelper.ConvertShortArrayToString( keyList )}"; await _RestClient.Request(RequestBuilder.CreateDelete(string.Concat(uri, restriction)), cancellationToken).ConfigureAwait(false); } } }