This script can be useful in test and dev environments to quickly clear tables via the truncate command where referential integrity exists. The objects are scripted for drop and then the create statements are generated.
As with any script such as this do not run in a production environment, always target a dev or test database.