1. A computer program product, comprising a non-transitory computer usable medium having a computer readable program code embodied therein, the computer readable program code adapted to be executed to implement a method for automatic code generation for database object deletion, the method comprising: identifying metadata for a database table; for objects of the database table, determining an associated delete method, using the metadata; for each foreign key relationship between the objects of the database table, determining an associated delete constraint, using the metadata; and automatically generating code for deleting the objects, using the determined delete method and the delete constraint.