public static async Task <Document> TryDeleteDocumentAsync(
            this IChangeFeedDocumentClient client,
            Uri documentUri,
            RequestOptions requestOptions = null)
        {
            try
            {
                IResourceResponse <Document> response = await client.DeleteDocumentAsync(documentUri, requestOptions).ConfigureAwait(false);

                return(response.Resource);
            }
            catch (DocumentClientException ex) when(ex.StatusCode == HttpStatusCode.NotFound)
            {
                return(null);    // Ignore -- document not found.
            }
        }
 public async Task <IResourceResponse <Document> > DeleteDocumentAsync(Uri documentUri)
 {
     return(await _inner.DeleteDocumentAsync(documentUri));
 }