<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Deleting 1M documents from Appian</title><link>https://community.appian.com/discussions/f/process/30223/deleting-1m-documents-from-appian</link><description>I have a case where i need to delete 1million documents from appian. so what I did is querying the appian doc ids from the DB and checking whether the appian has this document and proceeding with deletion. for this i planned 2 approaches : 
 1. using</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Deleting 1M documents from Appian</title><link>https://community.appian.com/thread/120206?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2023 01:24:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13d35f66-3179-400c-bfd7-4909a9bc34d9</guid><dc:creator>navinkumars</dc:creator><description>&lt;p&gt;Thank You Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting 1M documents from Appian</title><link>https://community.appian.com/thread/120152?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2023 06:26:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee3be078-de46-4650-8222-90dd82b2f5fc</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;If you want to delete all files in a folder, the plugin &amp;quot;Content Tools&amp;quot; has a smart service to do that. This plugin also has a smart service to delete multiple documents in one go.&lt;/p&gt;
&lt;p&gt;For modelling loops in a process, find some examples in the documentation:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/23.3/looping.html"&gt;https://docs.appian.com/suite/help/23.3/looping.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You will have to implement some kind of batching. Do not try to load all IDs into memory.&lt;/p&gt;
&lt;p&gt;Your approach 1 is probably a bit more efficient.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>