Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Joins toolset > Tools

Remove Join (Data Management)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Removes a join from a feature layer or table view


Usage tips

Command line syntax
An overview of the Command Line window
RemoveJoin_management <in_layer_or_view> <join_name>

Parameter Explanation Data Type
<in_layer_or_view>

The layer or table view from which the join will be removed.

Table View | Raster Layer
<join_name>

The join to be removed.

String
Data types for geoprocessing tool parameters


Command line example

RemoveJoin roads_layer roads_lookup

Scripting syntax
About getting started with writing geoprocessing scripts
RemoveJoin_management (in_layer_or_view, join_name)

Parameter Explanation Data Type
in_layer_or_view (Required)

The layer or table view from which the join will be removed.

Table View | Raster Layer
join_name (Required)

The join to be removed.

String

Data types for geoprocessing tool parameters


Script example

# AddFieldFromJoin.py
# Description: Adds a field to a table, and calculates it's values based
#              on the values in a field from a joined table
# Requirements: 
# Author: ESRI
# Date: December 31 2003

# Create the Geoprocessor object
import arcgisscripting
gp = arcgisscripting.create()

try:
    # Set a variable to reduce typing
    gp.AddField("c:/workspace/gdb.mdb/roads","surfaceType","TEXT")

    # Make a layer from the feature class
    gp.MakeFeatureLayer("c:/workspace/gdb.mdb/roads","roads_layer")

    # Join the road_lookup_info table to my roads_layer
    gp.AddJoin("roads_layer","roadId","c:/workspace/gdb.mdb/roadsLookup","roadId")

    # Calculate the surfaceType field
    gp.Calculate("roads.surface_type","roadsLookup.surfaceType")

    # Remove the join
    gp.RemoveJoin("roads_layer", "roadsLookup")

except:
  # If an error occurred while running a tool, print the messages
    print gp.GetMessages(2)

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.