<?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>Locate an specific subfolder and delete the documents included in it and delete this subfolder</title><link>https://community.appian.com/discussions/f/process/39086/locate-an-specific-subfolder-and-delete-the-documents-included-in-it-and-delete-this-subfolder</link><description>I have being seeking information about my problem but I haven&amp;#39;t found the properly anwser. I have a constant as you see: 
 
 I&amp;#39;m creating dinamic subfolders inside this folder. Inside them I&amp;#39;m going to create documents. In some situations I will need</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Locate an specific subfolder and delete the documents included in it and delete this subfolder</title><link>https://community.appian.com/thread/147974?ContentTypeID=1</link><pubDate>Sat, 10 May 2025 15:30:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2550a60f-f890-4b2b-a94d-95e826871c8a</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Here&amp;#39;s an example of how you can use&amp;nbsp;&lt;span&gt;findcontentbyattribute to find folders. But I agree with Stefan, much better to store in the database if you can.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!nameToSearchFor: &amp;quot;Artifacts&amp;quot;,
  local!results: findcontentbyattribute(
    searchAllContent: true,
    contentType: &amp;quot;folder&amp;quot;,
    attributeName: &amp;quot;name&amp;quot;,
    searchCriteria: concat(&amp;quot;*&amp;quot;, local!nameToSearchFor, &amp;quot;*&amp;quot;)
  ),
  a!forEach(
    items: local!results,
    expression: a!map(
      id: folder(fv!item, &amp;quot;id&amp;quot;),
      name: folder(fv!item, &amp;quot;name&amp;quot;)
    )
  )
)&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Locate an specific subfolder and delete the documents included in it and delete this subfolder</title><link>https://community.appian.com/thread/147969?ContentTypeID=1</link><pubDate>Sat, 10 May 2025 10:49:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ff1a536-999e-43f4-a4ca-8d8b12c3b814</guid><dc:creator>danielg424213</dc:creator><description>&lt;p&gt;Thanks Stefan. I&amp;#39;ll check your answer to solve my problem.&lt;/p&gt;
&lt;div id="gtx-anchor" style="height:14px;left:88.7031px;position:absolute;top:8px;width:232.719px;"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble gtx-bubble" style="left:190px;top:32px;"&gt;
&lt;div id="bubble-2" class="jfk-bubble-content-id"&gt;
&lt;div id="gtx-host" style="max-width:400px;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="jfk-bubble-closebtn-id jfk-bubble-closebtn"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrow-id jfk-bubble-arrow jfk-bubble-arrowup" style="left:197.203px;"&gt;
&lt;div class="jfk-bubble-arrowimplbefore"&gt;&lt;/div&gt;
&lt;div class="jfk-bubble-arrowimplafter"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Locate an specific subfolder and delete the documents included in it and delete this subfolder</title><link>https://community.appian.com/thread/147967?ContentTypeID=1</link><pubDate>Sat, 10 May 2025 10:46:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:67135e74-c70a-4bab-bf31-810471968f0b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Appian identifies folder by a numeric ID. When creating folders, I highly recommend to store that ID somewhere in a record. This makes any deletion operations very simple.&lt;/p&gt;
&lt;p&gt;If you maintain an existing folder, and someone else made such decisions in the past, the plugin &amp;quot;Content Tools&amp;quot; with the function &amp;quot;findcontentbyattribute&amp;quot; can find folders by name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>