ArcGIS Pro 2.9 API Reference Guide
DeleteGeodatabase(MobileGeodatabaseConnectionPath) Method
Example 

ArcGIS.Core.Data.DDL Namespace > SchemaBuilder Class > DeleteGeodatabase Method : DeleteGeodatabase(MobileGeodatabaseConnectionPath) Method
Represents the physical path of the mobile ArcGIS.Core.Data.Geodatabase
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
// 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, Windows 8.1

See Also

Reference

SchemaBuilder Class
SchemaBuilder Members
Overload List