After deleting a collection through Collection API, the data is not getting deleted from clusterstate.json. Based on this discussion <http://lucene.472066.n3.nabble.com/create-collection-gets-stuck-on-node-restart-td4311994.html>, it seems clusterstate.json shouldn't be there for Solr 5.x (I am using 5.2.1). It also mentions that stateFormat should be set to 2.
How to set stateFormat to 2 while calling the Collection API? Can I default it to 2 during the setup itself so that I dont need to set it up for each and every collection creation? Thanks in Advance!