ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / UnpinProject Method
The path of the project entry to be unpinned.
Example Version

UnpinProject Method
Unpins a project.
Syntax
public static void UnpinProject( 
   string path
)

Parameters

path
The path of the project entry to be unpinned.
Remarks
After unpinning, the project is added to the recent project list.
Example
Pin / UnPin Projects
ArcGIS.Desktop.Core.Project.PinProject(projectPath);
ArcGIS.Desktop.Core.Project.UnpinProject(projectPath2);
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.1 or higher.
See Also