Curl command with delete option throws an exception
<p>I have been working on Elastic search for a while and I have scenario to delete some indices in the elasticsearch. </p>

<p>As instructed in the ELK user guide, am trying to delete the indices using the <code>CURL</code> command in PowerShell on Windows Server 2012 R2</p>

<p>The command is given below</p>

<pre><code>curl -X DELETE 'http://localhost:9200/logstash-2016.12.19/'
</code></pre>

<p>But when I give this command to delete in PowerShell, it throws the below error:</p>

<pre><code>Invoke-WebRequest : A parameter cannot be found that matches parameter name 'X'.
At line:1 char:6
+ curl -X DELETE 'http://10.242.244.170:9200/logstash-2016.12.19/'
+      ~~
    + CategoryInfo          : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
</code></pre>

<p>Can anyone help me solve this issue?</p>