ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.DDL Namespace / SchemaBuilder Class / DeleteGeodatabase Method / DeleteGeodatabase(MemoryConnectionProperties) Method
Represents the properties of the memory ArcGIS.Core.Data.Geodatabase.
Example

In This Topic
    DeleteGeodatabase(MemoryConnectionProperties) Method
    In This Topic
    Deletes the memory ArcGIS.Core.Data.Geodatabase with the specified name.
    Syntax
    Public Overloads Shared Sub DeleteGeodatabase( _
       ByVal memoryConnectionProperties As MemoryConnectionProperties _
    ) 
    public static void DeleteGeodatabase( 
       MemoryConnectionProperties 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
    Deleting a memory Geodatabase
    {
      await QueuedTask.Run(() =>
      {
        // 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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also