title: How to delete a webresponse based on jsessionId in c#?
body: <p>I am trying to do API testing in c#. I have a webresponse with some values uploaded to a url and a WebClient object with some headers (JSESSIONID, path etc)</p>
  
  <pre><code>    string cookie = JSESSIONID : ajyrnXWREThsarfoWSGGREGarevr;
      myWebClient.Headers.Add(HttpRequestHeader.Cookie, cookie);
      var responseArray1 = myWebClient.UploadValues(restURL, "POST", myQueryStringCollection2);
  </code></pre>
  
  <p>Now I want to delete the response with the above JSESSIONID.</p>
  
  <p>I was able to do this in Java with the below code:</p>
  
  <pre><code>    Client client = Client.create();
      Builder webResource = client.resource(restUrl).cookie(cookie);
      ClientResponse response1 = webResource.type("application/json").delete(ClientResponse.class);
  </code></pre>
  
  <p>Please let me know how to proceed in C#. </p>