nest - Delete index from Elastic Search causes Forbidden error 403 -


while deleting index elastic search, getting http error: 403. code deleting index follows:

static void deleteindex(string indexname)     {         // delete index, recreate         if (_client.indexexists(desc => desc.index(indexname)).exists)         {             var response = _client.deleteindex(desc => desc.index(indexname));             if (!response.isvalid)             {                 console.writeline(response.connectionstatus);                 console.writeline("press key continue");                 console.readkey();             }         }     } 

any pointers how remove forbidden error?


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -