Deletes a database sequence from an enterprise geodatabase.
This tool can be used with geodatabases in IBM Db2, Microsoft SQL Server, Oracle, PostgreSQL, and SAP HANA.
DeleteDatabaseSequence_management (in_workspace, seq_name)
The database connection (.sde) file to connect to the geodatabase from which you want to delete a sequence. The user specified in the database connection must have the following permissions in the database:
The name of the database sequence you want to delete. Once deleted, the sequence cannot be used to generate sequence IDs when called from existing custom applications or expressions.
The updated input workspace.
Delete the custom_sequence database sequence.
import arcpy arcpy.DeleteDatabaseSequence_management(r"C:/myconnections/mygdb.sde", "custom_sequence")
- Basic: No
- Standard: Yes
- Advanced: Yes