import arcpy
import os
arcpy.env.workspace = "data"
inFeatures = "Montgomery.gdb/Water/DistribMains"
inField = "MATERIAL"
dWorkspace = "Montgomery.gdb"
domName = "Material"
codedValue = "ACP: Asbestos concrete"
codeField = "TYPE"
descField = "DESRIPT"
arcpy.RemoveDomainFromField_management(inFeatures, inField)
arcpy.DeleteCodedValueFromDomain_management(dWorkspace, domName, codedValue)
arcpy.DomainToTable_management(dWorkspace, domname,
os.path.join(dWorkspace, domname), codeField,
descField)
arcpy.DeleteDomain_management(dWorkspace, domName)