title: Unable to delete document in Azure Cosmos DB with Document Link - Java Async V2
body: <p>I'm trying to delete a document in one of my Azure Cosmos DB Collection using the Java CosmosDB Async v2 Library with the document link. Every time I'm trying to perform the delete operation on the document I'm running into <code>Resource not found</code> issue. I'm not sure what I missed.</p>
  <p>Here is what I have so far:</p>
  <pre class="lang-java prettyprint-override"><code>public Document deleteDocument(String docId, String collectionName){
      RequestOptions options = new RequestOptions();
      PartitionKey key = new PartitionKey(docId);
      options.setPartitionKey(key);
      String documentLink = String.format(&quot;/dbs/%s/colls/%s/docs/%s&quot;, this.databaseName, collectionName, docId);
      LOGGER.info(&quot;DOCUMENT LINK:&quot; + documentLink);
      return this.client.deleteDocument(documentLink, options).next().block().getResource();
    }
  </code></pre>
  <p>Here is the Document information from the Azure CosmosDB:
  <a href="https://i.stack.imgur.com/SiRkO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SiRkO.png" alt="Document Information" /></a></p>
  <p>Input:</p>
  <pre class="lang-java prettyprint-override"><code>this.deleteDocument(&quot;beff44de-914a-4250-80c3-108b71989720&quot;, &quot;SravanCollection&quot;);
  </code></pre>
  <p>Thank you</p>