Select to view content in your preferred language

Clearing ModelBuilder

2478
1
05-15-2019 08:34 AM
LisaSwarn
Emerging Contributor

Hello, 

I created a somewhat complex Model Builder Process. (Various layers get intersected with a County, then fields are deleted from the intersection that are not needed, then buffers and other things are added for some of the layers.)

After the model builder has completed its run, I would like for the data to erase so I can rerun it with a different county without creating  new paths)

Any help would be appreciated. 

Tags (1)
0 Kudos
1 Reply
JacobBoyle412
Esri Contributor

Hey Lisa, 

There's a couple ways to facilitate this.

From the open model, click the Model tab at the top and select Delete Intermediate Data This will clean up the data created along the way to the final output.

Now, if you want to delete the data more programatically, you can use the Delete tool found in the General toolset in the Data Management Toolbox.  Add the delete, then connect it to the feature class you want to delete, then ALSO connect it as a precondition to the last output.  This will ensure the data is only deleted at the end of the process.

Jacob is a Sr. Solution Architect for Esri Professional Services and loves conservation planning, woodworking, LEGO, and his dogs.
0 Kudos