ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / RemoveRecentProject Method
The path to the aprx of a local project entry or the url of a portal project entry that is to be removed
Example

In This Topic
    RemoveRecentProject Method
    In This Topic
    Removes the project entry corresponding to the given input path from the recent list of projects
    Syntax
    Public Shared Sub RemoveRecentProject( _
       ByVal path As String _
    ) 
    public static void RemoveRecentProject( 
       string path
    )

    Parameters

    path
    The path to the aprx of a local project entry or the url of a portal project entry that is to be removed
    Example
    Remove a Recent Project
    {
      Project.RemoveRecentProject(projectPath);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also