<?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 do I delete lookup file (CSV) from a lookup lists using query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419623#M120665</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt; , &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt; , &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172708"&gt;@martin_mueller&lt;/a&gt; , &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt; , &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt; , &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206320"&gt;@493669&lt;/a&gt; &lt;/P&gt;

&lt;P&gt;Please help for this.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 21:34:19 GMT</pubDate>
    <dc:creator>harishalipaka</dc:creator>
    <dc:date>2020-09-29T21:34:19Z</dc:date>
    <item>
      <title>How do I delete lookup file (CSV) from a lookup lists using query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419622#M120664</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;When i run this query &lt;CODE&gt;|rest services/data/lookup-table-files&lt;/CODE&gt; I get a list of CSV data.&lt;BR /&gt;
From that, i want to delete one &lt;STRONG&gt;specific csv&lt;/STRONG&gt; . How can i achieve this?&lt;/P&gt;

&lt;P&gt;I tried &lt;CODE&gt;|rest services/data/lookup-table-files |where title="hari.csv" |delete&lt;/CODE&gt; but I didn't get it.&lt;/P&gt;

&lt;P&gt;Can you please help me with this?&lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 11:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419622#M120664</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2018-10-08T11:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete lookup file (CSV) from a lookup lists using query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419623#M120665</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt; , &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt; , &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172708"&gt;@martin_mueller&lt;/a&gt; , &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt; , &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt; , &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206320"&gt;@493669&lt;/a&gt; &lt;/P&gt;

&lt;P&gt;Please help for this.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419623#M120665</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2020-09-29T21:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete lookup file (CSV) from a lookup lists using query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419624#M120666</link>
      <description>&lt;P&gt;@harishalipaka try the &lt;A href="https://splunkbase.splunk.com/app/1724"&gt;Lookup Editor App&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 12:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419624#M120666</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-10-08T12:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete lookup file (CSV) from a lookup lists using query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419625#M120667</link>
      <description>&lt;P&gt;Hi @harishalipaka,&lt;/P&gt;

&lt;P&gt;If you want to delete lookup CSV file using REST API then you need to use REST API DELETE request which you can't achieve with command which you mentioned, may be you can create custom command which pass lookup file name from REST API GET output to python script (You need to create this script) and script will run REST API DELETE request from that output.&lt;/P&gt;

&lt;P&gt;Below is command which is working fine for me in my lab, in below command &lt;CODE&gt;USERNAME&lt;/CODE&gt; and &lt;CODE&gt;APP_NAME&lt;/CODE&gt; you need to provide explicitly, you can't use &lt;CODE&gt;-&lt;/CODE&gt; (wildcard)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -vk -u admin:password --request DELETE &lt;A href="https://localhost:8089/servicesNS/&amp;lt;USERNAME&amp;gt;/&amp;lt;APP_NAME&amp;gt;/data/lookup-table-files/test.csv" target="test_blank"&gt;https://localhost:8089/servicesNS/&amp;lt;USERNAME&amp;gt;/&amp;lt;APP_NAME&amp;gt;/data/lookup-table-files/test.csv&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: Updated curl command&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 12:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419625#M120667</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-08T12:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete lookup file (CSV) from a lookup lists using query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419626#M120668</link>
      <description>&lt;P&gt;I specified curl -vk -u admin:password --request DELETE &lt;A href="https://sh-ip-address:8089/servicesNS///data/lookup-table-files/test.csv"&gt;https://sh-ip-address:8089/servicesNS///data/lookup-table-files/test.csv&lt;/A&gt;&lt;BR /&gt;
Anyone got the following in a clustered SH env?&lt;BR /&gt;
&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;msg type="ERROR"&amp;gt;Object id=test.csv cannot be deleted in config=lookups.&amp;lt;/msg&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 15:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-delete-lookup-file-CSV-from-a-lookup-lists-using-query/m-p/419626#M120668</guid>
      <dc:creator>lim2</dc:creator>
      <dc:date>2019-11-20T15:37:44Z</dc:date>
    </item>
  </channel>
</rss>

