ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / ClearPinnedProjectTemplates Method
Example Version

ClearPinnedProjectTemplates Method
Clears the list of recent project templates.
Syntax
public static void ClearPinnedProjectTemplates()
Remarks
Note: This routine does not unpin project templates. Use UnpinTemplateProject if the project templates should be moved to the recent project template list.
Example
Clear Pinned Project Templates
ArcGIS.Desktop.Core.Project.ClearPinnedProjectTemplates();
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also