<?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>Purge documents from KC</title><link>https://community.appian.com/discussions/f/plug-ins/9877/purge-documents-from-kc</link><description>Hi Am looking for any leads best practices to delete unwanted documents from KC post a business transactions Thank you OriginalPostID-266887</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Purge documents from KC</title><link>https://community.appian.com/thread/43611?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 14:18:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c500a34-4054-4f83-8da3-a8c74623e5f9</guid><dc:creator>Poorna Guduri</dc:creator><description>Glad to help :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Purge documents from KC</title><link>https://community.appian.com/thread/43607?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 13:01:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea45594d-276f-4b8c-a1be-47e89afd33c2</guid><dc:creator>naveena113</dc:creator><description>Thanks @Poornah this is what i was looking for. Thank you @nareshs930&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Purge documents from KC</title><link>https://community.appian.com/thread/43604?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 12:07:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1eabd394-ae33-43bd-90b1-c641a212eeaa</guid><dc:creator>Poorna Guduri</dc:creator><description>Hi naveena, as per your requirement the process should be able to know the unwanted documents in order to delete them and then you can make use of the existing smart service - Delete Document - with MNI on it. If you want to go with the API provided by Appian, please find the below URL where the DocumentService interface (which is deprecated) is pointing to the ContentService (which is the parent interface for all types of Appian objects): &lt;a href="https://docs.appian.com/suite/help/17.1/api/com/appiancorp/suiteapi/collaboration/DocumentService.html#deleteDocuments-java.lang.Long:A-"&gt;docs.appian.com/.../DocumentService.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Purge documents from KC</title><link>https://community.appian.com/thread/43598?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 09:22:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41c4133b-bf71-4428-a58c-9a252eade6b8</guid><dc:creator>naveena113</dc:creator><description>Basically my requirement is to cleanup the breadcrumbs after doing a merge of a bunch different files to a PDF, after the merge is completed I get a PDF but I need to do some cleanup of the unwanted files &amp;amp; this has to be done as part of the plugin, do we have any API or apian classes which expose this functionality ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Purge documents from KC</title><link>https://community.appian.com/thread/43572?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2017 20:40:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f1c1ff5-d538-4e50-a119-4809e906fe61</guid><dc:creator>nareshs427</dc:creator><description>@naveena113 What do you mean by unwanted documents? Does KC contain both required and not required documents? If your requirement is to delete all the documents from KC then it should be a straight process using a smart service mentioned by Poorna above.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Purge documents from KC</title><link>https://community.appian.com/thread/43569?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2017 19:07:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5febcf4c-ec42-4eca-bbb4-177043151826</guid><dc:creator>Poorna Guduri</dc:creator><description>Hi naveena, you may opt for one of the following approaches:&lt;br /&gt;1. Through Direct Smart Service - There is a smart service which provides the ability to delete the documents from a folder. I am assuming that it works for KC as well. But the smart service has been tested on 6.x version of Appian. It was last updated in 2012. Please find the link below:&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUheKkLnOp5nSjbwQ61sZw8wzMsqH2nd0q5w/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;br /&gt;2. You may opt for one of the multiple ways to fetch the documents (in fact document ids) from KC - (getdocumentsfromfolder(), folder(folderId,&amp;quot;documentChildren&amp;quot;) - comes with 16.x version of Appian,etc.) and build a process model with the Delete Document Smart Service configured MNI on it in such a way that it will execute based on the number of documents.&lt;br /&gt;Hope this helps!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>