I am using the sample logic to get recent projects
<SPAN class="keyword token">var</SPAN> fileInfos <SPAN class="operator token">=</SPAN> Project<SPAN class="punctuation token">.</SPAN><SPAN class="token function">GetRecentProjects</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">Select</SPAN><SPAN class="punctuation token">(</SPAN>f <SPAN class="operator token">=</SPAN><SPAN class="operator token">></SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">FileInfo</SPAN><SPAN class="punctuation token">(</SPAN>f<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
But I want to know how to clear this list in code. I want to update the user.config that stores the recent projects. ArcGIS Pro does this when you try and open a recent project that no longer exists. If you click on one, it will prompt you and ask you if you want to remove the project. 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.
I have attached the out of the box Prompt behavior that i want to mimic in the Pro SDK.