ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

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
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Unregister As Versioned

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

Summary

Unregisters an enterprise, workgroup, or desktop geodatabase dataset as versioned.

Learn more about how to unregister data as versioned

Usage

  • The input dataset must be from a database connection established as the data owner.

  • Versioning tools only work with datasets in an enterprise, workgroup, or desktop geodatabases. File geodatabases do not support versioning.

  • An exclusive lock is required on the dataset.

  • Unregistering a traditional versioned dataset without first compressing the geodatabase may lead to loss of edited data.

Syntax

UnregisterAsVersioned(in_dataset, {keep_edit}, {compress_default})
ParameterExplanationData Type
in_dataset

The name of the dataset to be unregistered as versioned.

Table View; Feature Dataset
keep_edit
(Optional)

Specifies whether edits made to the versioned data will be maintained.

  • KEEP_EDIT —If there are existing edits in the delta tables, the tool will fail with an error message. Do not use this option if you intend to compress your edits from the Default version in the compress_default parameter. This is the default.
  • NO_KEEP_EDIT —If there are existing edits in the delta tables, the tool will allow deletion of these edits. Use this option if you do intend to compress your edits from the Default version in the compress_default parameter.
Boolean
compress_default
(Optional)

Specifies whether edits will be compressed and unused data will be removed. This option is ignored if the KEEP_EDIT option is used in the keep_edit parameter.

  • COMPRESS_DEFAULT —Edits in the Default version will be compressed to the base table.
  • NO_COMPRESS_DEFAULT —Any edits remaining in the delta tables will not be compressed. This is the default.
Boolean

Derived Output

NameExplanationData Type
out_dataset

The unregistered dataset.

Table View; Feature Dataset

Code sample

UnregisterAsVersioned example (stand-alone script)

The following stand-alone script demonstrates how to use the UnregisterAsVersioned tool to unregister a dataset as versioned.

# Name: UnregisterAsVersioned_Example.py
# Description: Unregisters a dataset as versioned
# Author: ESRI

# Import system modules
import arcpy

# Set local variables
datasetName = "c:/whistler@prod.sde/prod.GDB.ctgFuseFeature"

# Execute UnregisterAsVersioned
arcpy.UnregisterAsVersioned_management(datasetName,
                                       "NO_KEEP_EDIT",
                                       "COMPRESS_DEFAULT")

Environments

  • Current Workspace

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics

  • An overview of the Versions toolset
  • An overview of traditional versioning
  • The version editing process
  • A quick tour of reviewing conflicts
  • What is a version?
  • Version scenarios
  • Register and unregister data as versioned

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

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

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2020 Esri. | Privacy | Legal