DeleteGeodatabase(FileGeodatabaseConnectionPath) Method
Deleting a File Geodatabase
public void DeleteFileGeodatabaseSnippet()
{
// Create a FileGeodatabaseConnectionPath with the name of the file geodatabase you wish to delete
FileGeodatabaseConnectionPath fileGeodatabaseConnectionPath = new FileGeodatabaseConnectionPath(new Uri(@"C:\Path-To-File-Geodatabase\YourName.gdb"));
// Delete the file geodatabase
SchemaBuilder.DeleteGeodatabase(fileGeodatabaseConnectionPath);
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.0 or higher.