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

ClearPinnedProjects Method
Clears the list of pinned projects.
Syntax
public static void ClearPinnedProjects()
Remarks
Note: This routine does not unpin projects. Use UnpinProject if the project should be moved to the recent project list.
Example
Clear Pinned Projects
ArcGIS.Desktop.Core.Project.ClearPinnedProjects();
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also