<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to delete all data of index using python? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436136#M7839</link>
    <description>&lt;P&gt;Do you want the data to be deleted permanently from the index (disk) or just want it to be unsearchable while still retaining the data on the indexes (disks).&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 11:16:32 GMT</pubDate>
    <dc:creator>soumyasaha25</dc:creator>
    <dc:date>2018-07-12T11:16:32Z</dc:date>
    <item>
      <title>How to delete all data of index using python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436135#M7838</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;So I'm wondering if it's possible to use a python script that runs on a schedule to delete all the content of an index.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 10:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436135#M7838</guid>
      <dc:creator>ejespiritu</dc:creator>
      <dc:date>2018-07-12T10:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete all data of index using python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436136#M7839</link>
      <description>&lt;P&gt;Do you want the data to be deleted permanently from the index (disk) or just want it to be unsearchable while still retaining the data on the indexes (disks).&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 11:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436136#M7839</guid>
      <dc:creator>soumyasaha25</dc:creator>
      <dc:date>2018-07-12T11:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete all data of index using python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436137#M7840</link>
      <description>&lt;P&gt;Hi @ejespiritu&lt;/P&gt;

&lt;P&gt;Take a look at the Delete command, here is the link.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/Delete"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/Delete&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can make this as a scheduled search, make it run frequently to delete the data.&lt;/P&gt;

&lt;P&gt;&amp;amp; another thing to remind of is, you need to have delete permissions enabled for you role to delete  the data from index ( delete permissions are separate from admin permissions )&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 16:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436137#M7840</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2018-07-12T16:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete all data of index using python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436138#M7841</link>
      <description>&lt;P&gt;delete permanently as i need it to be replaced as a whole every month&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 01:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436138#M7841</guid>
      <dc:creator>ejespiritu</dc:creator>
      <dc:date>2018-07-13T01:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete all data of index using python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436139#M7842</link>
      <description>&lt;P&gt;yes, as @PowerPacker pointed out below, you can run a scheduled search and set "run script" in alert actions to delete the index.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 09:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-delete-all-data-of-index-using-python/m-p/436139#M7842</guid>
      <dc:creator>soumyasaha25</dc:creator>
      <dc:date>2018-07-16T09:34:55Z</dc:date>
    </item>
  </channel>
</rss>

