<?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 Deleting Custom List Items in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/Deleting-Custom-List-Items/m-p/602618#M865</link>
    <description>&lt;P&gt;In a playbook, I have a decision tree.&lt;BR /&gt;&lt;BR /&gt;If option A -&amp;gt; Check List -&amp;gt; If Value Exists in custom list -&amp;gt; Do Nothing&lt;/P&gt;&lt;P&gt;Else If Option b -&amp;gt; Check list -&amp;gt; If Value Exists in custom list -&amp;gt; Delete that list entry.&lt;/P&gt;&lt;P&gt;Checking in the SOAR Phantom app actions, I see several options for lists, but no option to "remove/delete listitem" (see attached pic)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How do I go about deleting items from a Custom List?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;(SOAR Cloud 5.3.1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 13:30:09 GMT</pubDate>
    <dc:creator>CS_</dc:creator>
    <dc:date>2022-06-21T13:30:09Z</dc:date>
    <item>
      <title>Deleting Custom List Items</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Deleting-Custom-List-Items/m-p/602618#M865</link>
      <description>&lt;P&gt;In a playbook, I have a decision tree.&lt;BR /&gt;&lt;BR /&gt;If option A -&amp;gt; Check List -&amp;gt; If Value Exists in custom list -&amp;gt; Do Nothing&lt;/P&gt;&lt;P&gt;Else If Option b -&amp;gt; Check list -&amp;gt; If Value Exists in custom list -&amp;gt; Delete that list entry.&lt;/P&gt;&lt;P&gt;Checking in the SOAR Phantom app actions, I see several options for lists, but no option to "remove/delete listitem" (see attached pic)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How do I go about deleting items from a Custom List?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;(SOAR Cloud 5.3.1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 13:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Deleting-Custom-List-Items/m-p/602618#M865</guid>
      <dc:creator>CS_</dc:creator>
      <dc:date>2022-06-21T13:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Custom List Items</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Deleting-Custom-List-Items/m-p/602622#M866</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/242496"&gt;@CS_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is an API to perform this in a code block or custom function:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SOAR/current/PlaybookAPI/DataManagementAPI#delete_from_list" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SOAR/current/PlaybookAPI/DataManagementAPI#delete_from_list&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise you can rebuild the list without the value(s) and then use set_list to overwrite:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SOAR/current/PlaybookAPI/DataManagementAPI#set_list" target="_blank"&gt;https://docs.splunk.com/Documentation/SOAR/current/PlaybookAPI/DataManagementAPI#set_list&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 13:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Deleting-Custom-List-Items/m-p/602622#M866</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2022-06-21T13:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Custom List Items</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Deleting-Custom-List-Items/m-p/602626#M867</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222170"&gt;@phanTom&lt;/a&gt;As always, you've dropped the perfect answer. Many thanks!&lt;/P&gt;&lt;P&gt;I'll give this a try (from the first URL you provided)&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;phantom.delete_from_list(list_name=None, value=None, column=None, remove_all=False, remove_row=False)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Jun 2022 13:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Deleting-Custom-List-Items/m-p/602626#M867</guid>
      <dc:creator>CS_</dc:creator>
      <dc:date>2022-06-21T13:42:06Z</dc:date>
    </item>
  </channel>
</rss>

