While doing some handson with ELK, I happen to delete an Index from ELK. I used the below command
curl -XDELETE 'http://localhost:9200/logstash-2016.10.20'
but this throws the below error
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'XDELETE '.
At line:1 char:6
- curl -XDELETE 'http://localhost:9200/logstash-2016.10.20'
-
~~~~~
- CategoryInfo : InvalidArgument: (
[Invoke-WebRequest], ParameterBindingException
- FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
- CategoryInfo : InvalidArgument: (
So i checked whether the curl itself is working or not and found it to be working perfectly.
Please help me solve this issue