Everything is in the title. I need to truncate file geodatabase tables (1 or all) with python. What is the code for that? Thank you in advance!
AFAIK, you can use Delete Rows method in arcpy. from Arcgis Resource Center:
Delete Rows (Data Management)
consider this caution:
i hope it helps you...
As of 10.1, Esri has added Truncate Table (Data Management). It will remove all records from a table, regardless of a table view selection, and does not support versioned tables. It is much faster, though.
Esri's sample code for truncating all tables in a geodatabase: