Sorry Michael, it seems I confused myself a bit.It was with indexes that I had this issue and had to work around it.For the joins, you just have to know what the name that was assigned to the join is, then it can be removed without error (just tested again in 10.1).
â? If the join table was a dBASE file named MyTable.dbf, the join name would be "MyTable"; so to remove it, specify "MyTable".
â? If the join table was an INFO or Geodatabase Table named MyTable2, the Join Name would be "MyTable2"; so to remove it, specify "MyTable2".
â? The join name will not reflect the name of the table view itself, but rather the source of the table view. Therefore, if a table view is named TableView1 and points at mytable.dbf, the name of the join will be "mytable".
My joins are to table(s) in FGDB so something like:
summary = "\\\\mcflight01\\MCFlightData\\rzworking\\script_baks\\wc98116\\update\\data_4_temp_services.gdb\\summary"
wids_full_buffer2 = "\\\\mcflight01\\MCFlightData\\rzworking\\script_baks\\wc98116\\update\\temp.gdb\\wids_full_buffer"
wastebuffers3 = "\\\\mcflight01\\MCFlightData\\rzworking\\script_baks\\wc98116\\update\\temp.gdb\\wastebuffers3"
arcpy.MakeFeatureLayer_management(wids_full_buffer2, wids_buffer_Layer, "", "", "")
arcpy.AddJoin_management(wids_buffer_Layer, "SITECODE", summary, "SITE_CODE", "KEEP_COMMON")
arcpy.AddJoin_management(wids_buffer_Layer, "SITECODE", wastebuffers3, "wids_full_buffer_SITECODE", "KEEP_COMMON")
arcpy.RemoveJoin_management(wids_buffer_Layer, "summary")
arcpy.RemoveJoin_management(wids_buffer_Layer, "wastebuffers3")
I can use either or both of the removes to remove thier respective joins (need to specify layer and join name).R_