Support Questions
Find answers, ask questions, and share your expertise

Solr data directory issue


Hi ,


My solr data directory is full. 


Can I delete any data from this? I tried to use CURL command but it didn't work as it throws error as no space left on device.


Can you please help?



@jsensharma @Shelton 




Can you try this other method to create script using below example set permission u+x


curl http://<localhost:port>/solr/core_name/update?commit=true -H "Content-Type: text/xml" --data-binary `'<delete><query>*:*</query></delete>'`


Then launch notice the commit=true this should resolve the no space left on device issue.


@Shelton ,


I am using below CURL command 



curl -v --negotiate -u : 'http://<host>:8886/solr/ranger_audits/update?commit=true' -H 'Content-Type: text/xml' --data-binary '<delete><query>evtTime:[* TO NOW-30DAYS]</query></delete>'


you mentioned after that launch notice commit=true. How should I launch that ?







No, I just wanted to emphasize that the parameter commit=true will continuously delete as it progresses it in a bash script. Just run it as a normal bask script ie.

This should ensure the deletion occurs for every entry rather than for the last 30days  [* TO NOW-30DAYS]  at once 



Hi @Shelton 


When I run that command its saying:


How do I know the exact path?or what other commands I can try?


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 404 Not Found</title>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/ranger_audits/update. Reason:
<pre>    Not Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>


; ;