<?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 Delete List using automation/command? in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/delete-list-using-automation-command/m-p/501648#M939</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to delete a list using a playbook tasks, but I dont find any automation that can achieve it. It only have createList, and remove data from List&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I know any workaround for it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jia Kai&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2022 08:05:30 GMT</pubDate>
    <dc:creator>JOng39</dc:creator>
    <dc:date>2022-06-08T08:05:30Z</dc:date>
    <item>
      <title>Delete List using automation/command?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/delete-list-using-automation-command/m-p/501648#M939</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to delete a list using a playbook tasks, but I dont find any automation that can achieve it. It only have createList, and remove data from List&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I know any workaround for it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jia Kai&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 08:05:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/delete-list-using-automation-command/m-p/501648#M939</guid>
      <dc:creator>JOng39</dc:creator>
      <dc:date>2022-06-08T08:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delete List using automation/command?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/delete-list-using-automation-command/m-p/501658#M940</link>
      <description>&lt;P&gt;Hey Jia Kai, you could write an automation that makes an API call to delete the list - you'll need to have the Demisto REST API integration configured for this.&lt;/P&gt;&lt;P data-unlink="true"&gt;The API method used is POST to the following endpoint: &lt;SPAN&gt;/lists/delete&amp;nbsp;(if multi-tenant: /acc_&amp;lt;tenant_name&amp;gt;/lists/delete )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And the request body would be:{"id":"&amp;lt;list_name&amp;gt;"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The basic script would look something like this (add whatever is needed to print a result, set to context, etc.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;listName = demisto.args().get("list_name")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;body = {"id": listName}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;demisto.executeCommand("demisto-api-post", {"uri":"/lists/delete", "body":body})&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 08:54:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/delete-list-using-automation-command/m-p/501658#M940</guid>
      <dc:creator>nkazinets</dc:creator>
      <dc:date>2022-06-08T08:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Delete List using automation/command?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/delete-list-using-automation-command/m-p/546908#M2261</link>
      <description>&lt;P&gt;Why isn't this native to xsoar?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 18:47:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/delete-list-using-automation-command/m-p/546908#M2261</guid>
      <dc:creator>Sec101</dc:creator>
      <dc:date>2023-06-22T18:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delete List using automation/command?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/delete-list-using-automation-command/m-p/559674#M2661</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/59122"&gt;@Sec101&lt;/a&gt;&amp;nbsp;I am going to create a wrapper automation for this very functionality. Of course, this will be dependent on the "Core REST API" being configured and enabled.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I ran into a scenario requiring this capability and just completed a working demo.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:44:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/delete-list-using-automation-command/m-p/559674#M2661</guid>
      <dc:creator>JLevine</dc:creator>
      <dc:date>2023-09-27T13:44:11Z</dc:date>
    </item>
  </channel>
</rss>

