<?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 Removing a file from index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Removing-a-file-from-index/m-p/102134#M21418</link>
    <description>&lt;P&gt;I have added a few files for testing. I will now like to remove these files from the index. I removed the file using "rm" command and it is still showing up in the search.&lt;/P&gt;

&lt;P&gt;How do I permanently remove the indexes?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2011 04:58:26 GMT</pubDate>
    <dc:creator>shantanuo</dc:creator>
    <dc:date>2011-11-02T04:58:26Z</dc:date>
    <item>
      <title>Removing a file from index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-a-file-from-index/m-p/102134#M21418</link>
      <description>&lt;P&gt;I have added a few files for testing. I will now like to remove these files from the index. I removed the file using "rm" command and it is still showing up in the search.&lt;/P&gt;

&lt;P&gt;How do I permanently remove the indexes?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2011 04:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-a-file-from-index/m-p/102134#M21418</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2011-11-02T04:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a file from index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-a-file-from-index/m-p/102135#M21419</link>
      <description>&lt;P&gt;Hi shantanuo&lt;/P&gt;

&lt;P&gt;you cannot delete an indexed file like this from an index, you have to do a search for the &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source='WhatEverNameYourFileHad' | delete
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this way you are removing the source from future searches events or you do a &lt;CODE&gt;clean&lt;/CODE&gt; on your index to delete indexed data.&lt;/P&gt;

&lt;P&gt;please read the &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.4/Admin/RemovedatafromSplunk"&gt;docs&lt;/A&gt; about this before you do this &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2011 06:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-a-file-from-index/m-p/102135#M21419</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2011-11-02T06:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a file from index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-a-file-from-index/m-p/102136#M21420</link>
      <description>&lt;P&gt;Also, as pointed out by MuS, the &lt;CODE&gt;| delete&lt;/CODE&gt; does not actually remove anything from the index, and if you &lt;CODE&gt;clean&lt;/CODE&gt; an index, you &lt;CODE&gt;clean&lt;/CODE&gt; everything in it.&lt;/P&gt;

&lt;P&gt;Therefore, when playing around with new sources/sourcetypes you should always use a test index, where you can test your line-breaking, transforms etc etc, without polluting the 'real' index.&lt;/P&gt;

&lt;P&gt;When you're satisfied and everything works fine, you can the set up your real monitor stanzas and direct it to your main index.&lt;/P&gt;

&lt;P&gt;hth,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2011 08:35:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-a-file-from-index/m-p/102136#M21420</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2011-11-02T08:35:13Z</dc:date>
    </item>
  </channel>
</rss>

