Usage
This tool requires an exclusive schema lock on the input table.
If you specify both a rule name and a rule type when running this tool, upon execution, the tool will verify that the type of rule specified matches the rule type specified. If they do not match, the rule will not be deleted.
Syntax
arcpy.management.DeleteAttributeRule(in_table, names, {type})
Parameter | Explanation | Data Type |
in_table | The table or feature class containing the attribute rule to delete. | Table View |
names [names,...] | The names of the rules to delete from the dataset. | String |
type (Optional) | Specifies the type of attribute rules to delete.
| String |
Derived Output
Name | Explanation | Data Type |
out_table | The updated input table with one or more attribute rules deleted. | Table View; Raster Layer; Mosaic Layer |
Code sample
Delete two specific calculation attribute rules from a feature class.
import arcpy
arcpy.DeleteAttributeRule_management(
"C:\\MyProject\\MyDatabase.sde\\pro.USER1.campusData", "Rule A;Rule B",
"CALCULATION")
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes