/// <summary>
        /// Delete time series data
        /// </summary>
        public async Task DeleteTimeSeriesAsync(DeleteTimeSeriesRequest request)
        {
            string uri = GetUriForDeleteTimeSeries(request);

            Debug.WriteLine(uri);

            await HttpActionAsync(HttpMethod.Delete, uri);
        }
        /// <summary>
        /// Generate specific URI for delete request
        /// </summary>
        private string GetUriForDeleteTimeSeries(DeleteTimeSeriesRequest request)
        {
            // prepare query string
            string queryString = "?";

            queryString += request.From != null ? $"from={Helper.GetDateTimeUtcString(request.From.Value)}&" : "";
            queryString += request.To != null ? $"to={Helper.GetDateTimeUtcString(request.To.Value)}&" : "";

            string pathString = $"/{request.EntityId}/{request.PropertySetName}";
            string uri        = _baseUri + "/timeseries" + pathString + queryString;

            return(uri);
        }