<?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 Re: How to clear recent projects list in code in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-recent-projects-list-in-code/m-p/777999#M964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever figure this out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2018 22:30:46 GMT</pubDate>
    <dc:creator>DavidButz</dc:creator>
    <dc:date>2018-03-15T22:30:46Z</dc:date>
    <item>
      <title>How to clear recent projects list in code</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-recent-projects-list-in-code/m-p/777998#M963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the sample logic to get recent projects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fileInfos &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Project&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetRecentProjects&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Select&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;FileInfo&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I want to know how to clear this list in code.&amp;nbsp; I want to update the user.config that stores the recent projects.&amp;nbsp; ArcGIS Pro does this when you try and open a recent project that no longer exists.&amp;nbsp; If you click on one, it will prompt you and ask you if you want to remove the project.&amp;nbsp; I have made a custom start page that loads the recent projects, but when a user clicks on a recent project from the list (that has been deleted from system), ArcGIS Pro Crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the out of the box Prompt behavior that i want to mimic in the Pro SDK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-recent-projects-list-in-code/m-p/777998#M963</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2021-12-12T08:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear recent projects list in code</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-recent-projects-list-in-code/m-p/777999#M964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever figure this out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 22:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-recent-projects-list-in-code/m-p/777999#M964</guid>
      <dc:creator>DavidButz</dc:creator>
      <dc:date>2018-03-15T22:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear recent projects list in code</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-recent-projects-list-in-code/m-p/778000#M965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't dug into this in a while.&amp;nbsp; I never could get it to clear the list of projects. I am sure there is a way to edit the xml.&amp;nbsp; &amp;nbsp;I have to remove them manually.&amp;nbsp; I just delete RecentProjects items&amp;nbsp; from the file user.config in the directory&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%localappdata%l\ESRI\ArcGISPro.exe_StrongName_XXXXXXXX\2.1.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The StrongName Folder name and version will vary of course, but goto&amp;nbsp;%localappdata%l\ESRI\ and find the strongname folder and version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also like to cleanup my projects too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%userprofile%\documents\ArcGIS\Projects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 15:10:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-clear-recent-projects-list-in-code/m-p/778000#M965</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2018-03-16T15:10:20Z</dc:date>
    </item>
  </channel>
</rss>

