Delete Version (Data Management)

Deletes the specified version from the input workspace.

Usage tips


DeleteVersion_management (in_workspace, version_name)
Parameter Explanation Datatype
Input Workspace (Required)

The ArcSDE geodatabase containing the version to be deleted. The default is to use the workspace defined in the environment.

Version Name (Required)

The version to be deleted.

Data types for geoprocessing tool parameters

Script Example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "h:/workspace"
gp.toolbox = "management"
gp.deleteversion( "Database Connections\Connection to workspace.sde",  "v1_roads")

See Also

  • Alter Version (Data Management)
  • Create Version (Data Management)
  • Reconcile Version (Data Management)
  • Register as Versioned (Data Management)
  • Unregister as Versioned (Data Management)