How to send DELETE with JSON to the REST API using HttpClient
Although it might be late to answer this question but I’ve faced a similar problem and the following code worked for me. HttpRequestMessage request = new HttpRequestMessage { Content = new StringContent(“[YOUR JSON GOES HERE]”, Encoding.UTF8, “application/json”), Method = HttpMethod.Delete, RequestUri = new Uri(“[YOUR URL GOES HERE]”) }; await httpClient.SendAsync(request); UPDATE on .NET 5 .NET … Read more