BrokenLegMike

Can you Remove All Joins?

Discussion created by BrokenLegMike on Mar 22, 2012
Latest reply on May 17, 2012 by sclardy
I'm writing a script using the arcpy.RemoveJoin_management method. I have some template map documents I use and I have a join I need to be removed on a layer. It's the same layer in every map and it is joined to a table that is in one of 2 separate gdb's.

For example:
in some cases, a layer named SOIL is joined to a table named SOIL_CHEM, so the join name is SOIL_CHEM
in other cases, the layer named SOIL is joined to the other table called SOILCHEM (without the underscore) and the join name is SOILCHEM

I somehow need to either list the joins and remove interactively or have a way to remove all. Any suggestions?

Thanks,
Mike

Outcomes