ArcGIS Pro 2.6.8; Oracle 18c 10.7.1 EGDB
I have 300 tables in a production enterprise geodatabase. When I say tables I mean feature classes and tables.
Some (but not all) of the tables have fields that need to be deleted. Fields:
- ASSET_STATUS_DATE
- PROP_DATE
- ASSM_DATE
- REMOV_DATE
- BLOCK
- MAP_ROTATION
Question:
What is a simple, safe way to delete the fields programmatically? For example, a model or Python script that:
- Loops through all GDB tables.
- If the table has one of the fields we want to delete, create a copy (a backup) of the FC in a pre-made file geodatabase.
- Delete the fields from the FC.
Note: I don't need to check if the fields are empty, etc.
What mechanism do you recommend for that use case?
Thanks.