<?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>Delete Process instances from environment</title><link>https://community.appian.com/discussions/f/process/20927/delete-process-instances-from-environment</link><description>Team, 
 We are on 17.4 version and trying to remove all process instances from one of our lower environment around 100k+. 
 Do we have any function or plugin which we can use to delete them at once instead of manual deletion . 
 Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Delete Process instances from environment</title><link>https://community.appian.com/thread/151864?ContentTypeID=1</link><pubDate>Tue, 07 Oct 2025 02:54:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3a30f223-0101-4878-abe2-380c0d03982e</guid><dc:creator>Sneha Yada</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to clean the completed processes from lthe ower environment. (currently this&amp;nbsp;Env has 4k completed instances)&lt;/p&gt;
&lt;p&gt;I created a process report for &lt;strong&gt;completed processes&lt;/strong&gt; and used a!queryProcessAnalytics() with batching to retrieve the process IDs.&lt;/p&gt;
&lt;p data-start="379" data-end="454"&gt;However, I&amp;rsquo;m encountering the following issues during the deletion process:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The process can delete a few instances (with a batch size of 50), but after several batches, &lt;strong data-start="558" data-end="587"&gt;a!queryProcessAnalytics()&lt;/strong&gt; throws the following error and fails to retrieve the remaining process id&amp;#39;s, &amp;quot;&lt;strong&gt;There was an error querying the Analytics report. (APNX-1-4275-000)&amp;quot;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;I tried adding a delay before fetching the next batch of process IDs (after deleting the previous batch), but the issue persists, the remaining process instances still failed to fetch and delete.&lt;/li&gt;
&lt;li&gt;In the process report display settings, when I set &amp;quot;Rows per page&amp;quot; to 25, the report loads correctly. However, increasing this to 50 causes the report to fail with the error: &amp;quot;&lt;strong&gt;An error occurred while retrieving the report.&amp;quot;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Additionally, I can see errors in both the Analytics log and Tomcat logs, indicating that the process report query is failed to fecth the information.&lt;/li&gt;
&lt;/ol&gt;
&lt;p data-start="1287" data-end="1464"&gt;Has anyone else encountered these issues? If so, were you able to resolve it?&lt;/p&gt;
&lt;p data-start="1287" data-end="1464"&gt;Has anyone successfully deleted a large number of process instances using this smart service?&lt;/p&gt;
&lt;p data-start="1287" data-end="1464"&gt;&lt;img style="max-height:167px;max-width:320px;" alt=" " src="/resized-image/__size/640x334/__key/communityserver-discussions-components-files/14/pastedimage1759805078101v1.png" /&gt;&lt;/p&gt;
&lt;p data-start="1287" data-end="1464"&gt;&lt;img style="max-height:37px;max-width:320px;" alt=" " src="/resized-image/__size/640x74/__key/communityserver-discussions-components-files/14/Screenshot-2025_2D00_10_2D00_07-at-10.32.32_2F20_AM.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delete Process instances from environment</title><link>https://community.appian.com/thread/81979?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 09:58:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6109acc4-c74e-4b43-90bc-9d43d59e32b3</guid><dc:creator>gauravp0003</dc:creator><description>&lt;p&gt;&lt;strong&gt;include data from sub-process&lt;/strong&gt;&lt;span&gt;&amp;nbsp;as&amp;nbsp; YES? should suffice and show subprocess in report . For us we have to because not all the process&amp;nbsp;configured to show subprocess&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delete Process instances from environment</title><link>https://community.appian.com/thread/81978?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 09:46:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aff46885-8c9b-4fec-aa4d-e326232d651c</guid><dc:creator>vamsi krishna</dc:creator><description>&lt;p&gt;Gaurav,&lt;/p&gt;
&lt;p&gt;In the Process Report configuration also should we mention, &lt;strong&gt;include data from sub-process&lt;/strong&gt; as&amp;nbsp; YES?&lt;/p&gt;
&lt;p&gt;or only configuring in PM is enough?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delete Process instances from environment</title><link>https://community.appian.com/thread/81976?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 08:48:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e0a3ff0d-474a-46cc-a091-91250b95d92e</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;Great.. :) Please validate my response as answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delete Process instances from environment</title><link>https://community.appian.com/thread/81969?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 06:24:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8fb69363-d5d5-4e25-81c4-b5a558e8fabb</guid><dc:creator>gauravp0003</dc:creator><description>&lt;p&gt;Thank you i created an expression with&amp;nbsp;a!queryProcessAnalytics() and it provides the process id&amp;#39;s of sub process to delete as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delete Process instances from environment</title><link>https://community.appian.com/thread/81757?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 06:42:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56d01a4a-5ec2-481d-a4fe-2a1d9cc7756d</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;For this case you need to configure your subprocess in a way that while generating the process report of parent you should be able to capture sub process details as well.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1621320202824v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thereby passing all the process instance Ids you can delete all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delete Process instances from environment</title><link>https://community.appian.com/thread/81755?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 06:12:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e95713b-8ff1-4608-ab13-9bb0958dd995</guid><dc:creator>gauravp0003</dc:creator><description>&lt;p&gt;Thank you , will it work for parent child process as well ? like parent is deleted but child still active or it will be deleted too.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delete Process instances from environment</title><link>https://community.appian.com/thread/81539?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 13:26:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:522389c0-a4b6-488f-a19e-ca2c0804163b</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;&lt;a href="/members/gauravp0003"&gt;gauravp0003&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can create a process report to to get the process ids of the instances and then pass those Process ids to Delete Process Smart service.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1620739620100v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Delete Process instances from environment</title><link>https://community.appian.com/thread/81527?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 05:31:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5f885c3-6671-436e-a089-8417f4bb962b</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Gaurav&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There isn&amp;#39;t&amp;nbsp;anything out of the box. There are relevant utilities in the AppMarket (e.g.&amp;nbsp;&lt;a href="/b/appmarket/posts/process-management-services"&gt;https://community.appian.com/b/appmarket/posts/process-management-services&lt;/a&gt;) which, I presume, you would use in conjunction with a Process Report, the latter with which you can get the list of process instance identifiers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>