I'm trying to make a model where I make a copy of 'geodatabase A' to another location as 'geodatabase B', delete all of the datasets within, and create new datasets for geodatabase B. The reason I'm copying a particular geodatabase (geodatabase A) is because it contains all the domains I need for geodatabase B. However, I want to delete the datasets once it's copied so that I can reassign the spacial reference. When I put the copy tool and the iterate datasets together in one model, it iterated the copy function as well, making the model go infinitely. So now I'm thinking I need to put the iteration as a submodel. However, I'm not sure how I can reference the input for the iteration, as the input doesn't exist yet.
Can someone help me or let me know a better way to do this?