Delete Version (Data Management) (ArcInfo and ArcEditor only) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Deletes the specified version from the input workspace.
Usage tips
Only the version's owner can rename, delete, or alter the version.
A parent version can't be deleted until all dependent child versions are deleted.
Versions are not affected by changes occurring in other versions of the database.
Versions can't be created, edited, or deleted in ArcView.
The following environment settings affect this tool: workspace, scratch workspace, and output CONFIG keyword.
Command line syntax
An overview of the Command Line window
DeleteVersion_management <in_workspace> <version_name>
Parameter | Explanation | Data Type |
<in_workspace> |
The ArcSDE geodatabase containing the version to be deleted. The default is to use the workspace defined in the environment. |
Workspace |
<version_name> |
The version to be deleted. |
String |
deleteversion_management "Database Connections\Connection to workspace.sde" v1_roads
Scripting syntax
About getting started with writing geoprocessing scripts
DeleteVersion_management (in_workspace, version_name)
Parameter | Explanation | Data Type |
in_workspace (Required) |
The ArcSDE geodatabase containing the version to be deleted. The default is to use the workspace defined in the environment. |
Workspace |
version_name (Required) |
The version to be deleted. |
String |
import arcgisscripting gp = arcgisscripting.create() gp.workspace = "h:/workspace" gp.toolbox = "management" gp.deleteversion( "Database Connections\Connection to workspace.sde", "v1_roads")