ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.DDL Namespace / SchemaBuilder Class / DeleteGeodatabase Method / DeleteGeodatabase(MobileGeodatabaseConnectionPath) Method
Represents the physical path of the mobile ArcGIS.Core.Data.Geodatabase
Example

In This Topic
    DeleteGeodatabase(MobileGeodatabaseConnectionPath) Method
    In This Topic
    Deletes the mobile ArcGIS.Core.Data.Geodatabase at the specified path
    Syntax
    public static void DeleteGeodatabase( 
       MobileGeodatabaseConnectionPath mobileGeodatabaseConnectionPath
    )
    Public Overloads Shared Sub DeleteGeodatabase( _
       ByVal mobileGeodatabaseConnectionPath As MobileGeodatabaseConnectionPath _
    ) 

    Parameters

    mobileGeodatabaseConnectionPath
    Represents the physical path of the mobile ArcGIS.Core.Data.Geodatabase
    Exceptions
    ExceptionDescription
    The length of the local path is greater than 215 characters.
    mobileGeodatabaseConnectionPath is null.
    The input path does not contain a mobile ArcGIS.Core.Data.Geodatabase.
    A geodatabase-related exception has occurred.
    Example
    Deleting a Mobile Geodatabase
    public void DeleteMobileGeodatabase()
    {
        // Create a MobileGeodatabaseConnectionPath with the name of the mobile geodatabase you wish to delete
        MobileGeodatabaseConnectionPath mobileGeodatabaseConnectionPath =
          new MobileGeodatabaseConnectionPath(new Uri(@"C:\Path-To-Mobile-Geodatabase\YourName.geodatabase"));
    
        // Delete the mobile geodatabase
        SchemaBuilder.DeleteGeodatabase(mobileGeodatabaseConnectionPath);
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also