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

ArcGIS.Core.Data.DDL Namespace > SchemaBuilder Class > DeleteGeodatabase Method : DeleteGeodatabase(MemoryConnectionProperties) Method
Represents the properties of the memory ArcGIS.Core.Data.Geodatabase.
Deletes the memory ArcGIS.Core.Data.Geodatabase with the specified name.
Syntax
public static void DeleteGeodatabase( 
   MemoryConnectionProperties memoryConnectionProperties
)
Public Overloads Shared Sub DeleteGeodatabase( _
   ByVal memoryConnectionProperties As MemoryConnectionProperties _
) 

Parameters

memoryConnectionProperties
Represents the properties of the memory ArcGIS.Core.Data.Geodatabase.
Exceptions
ExceptionDescription
memoryConnectionProperties is null.
The memory ArcGIS.Core.Data.Geodatabase with the specified name does not exist.
A geodatabase-related exception has occurred.
Example
// Create the memory connection properties to connect to default memory geodatabase
MemoryConnectionProperties memoryConnectionProperties = new MemoryConnectionProperties();

// Delete the memory geodatabase
SchemaBuilder.DeleteGeodatabase(memoryConnectionProperties);
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

SchemaBuilder Class
SchemaBuilder Members
Overload List