Delete Features Upon Completion of Model

Discussion created by stuart.blumberg on Jun 6, 2012
Latest reply on Jun 8, 2012 by JQuinn-esristaff

I have a temporary geodatabase where several feature classes are created during the process of a model run.  Once the model completes I would like to delete all the features in this geodatabase without deleting the geodatabase itself.  I have tried simply adding a "delete" tool in model builder after the last process, however, there seems to be a schema lock on the data while the model is still running.  Is there a way around this?  Can I make the delete tool run "on completion of the model?"  Thanks.