internal async Task<Entity> Delete(string endpoint,
QueryParams parameters = null,
Dictionary<string, string> additionalHeaders = null,
string contentType = ContentType.JSON)
{
// TODO: review the DELETE problem
// On Mac OS and Linux, DELETE requests will be sent as GET, which make it impossible for now
// to delete documents and drop batches using the REST API.
// This issue is documented here: https://github.com/dotnet/corefx/issues/4134
return await RequestJson(endpoint, parameters, null, HttpMethod.Delete, additionalHeaders, contentType);
}