Skip To Content

Uncompress File Geodatabase Data


Uncompresses all the contents in a geodatabase, all the contents in a feature dataset, or an individual stand-alone feature class or table.


  • When you uncompress a geodatabase, all feature classes and tables within it uncompress.

  • When you uncompress a feature dataset, all its feature classes uncompress.

  • You cannot individually compress or uncompress a feature class in a feature dataset to produce a mixed state where some feature classes are compressed and others are not. Compressed feature datasets allow you to add an uncompressed feature class through operations such as creating a new, empty feature class, copying and pasting, and importing. However, you cannot edit the uncompressed feature class if there are compressed feature classes in the same feature dataset. Once you've finished adding one or more uncompressed feature classes, you can recompress or uncompress the feature dataset so all its feature classes are either compressed or uncompressed.


UncompressFileGeodatabaseData_management (in_data, {config_keyword})
ParameterExplanationData Type

The geodatabase, feature dataset, feature class, or table to uncompress.

Workspace; Feature Dataset; Table View; Raster Layer; Geometric Network

The configuration keyword defining how the data will store once uncompressed


Code sample

UncompressFileGeodatabaseData example (Python window)

The following example demonstrates how to use the UncompressFileGeodatabaseData function in the Python window.

import arcpy
arcpy.env.workspace = "C:/data"
UncompressFileGeodatabaseData Example (Stand-alone Python script)

The following example demonstrates how to use the UncompressFileGeodatabaseData function in a standalone Python script.

# Name:
# Description: Use the UncompressFileGeodatabaseData tool to uncompress a geodatabase

# import system modules 
import arcpy

# Set environment settings
arcpy.env.workspace = "C:/data"

# Set local variables
geodatabase = "london.gdb"

# Process: Compress the data


Licensing information

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

Related topics