ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Delete Version

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

The Delete Version tool deletes the specified version from the input enterprise, workgroup, or desktop geodatabase.

Usage

  • Only the version's owner can delete the version.

  • A parent version cannot be deleted until all dependent child versions are deleted.

  • Versions are not affected by changes occurring in other versions of the geodatabase.

  • Versioning tools only work with enterprise, workgroup, and desktop geodatabase data. Personal and file geodatabases do not support versioning.

Syntax

DeleteVersion_management (in_workspace, version_name)
ParameterExplanationData Type
in_workspace

Provide the database connection file to the enterprise, workgroup, or desktop geodatabase containing the version to be deleted. The default is to use the workspace defined in the Current Workspace environment.

Workspace
version_name

Specify the name of the version to be deleted.

String

Code sample

DeleteVersion example (stand-alone script)

The following stand-alone script demonstrates how use the DeleteVersion tool to delete a version.

# Name: DeleteVersion_Example.py
# Description: Deletes a version

# Import system modules
import arcpy

# Set local variables
inWorkspace = "c:/Connections/whistler@gdb.sde"
versionName = "myVersion2"

# Execute DeleteVersion
arcpy.DeleteVersion_management(inWorkspace, versionName)

Environments

  • Current Workspace

Licensing information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Versions toolset
  • An overview of versioning
  • The version editing process
  • A quick tour of reviewing conflicts
  • What is a version?
  • Version scenarios

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal