I've created a model tool that creates an SDE connection file in %scratchFolder%. Once The model is complete, I'd like to delete this connection file to avoid warnings the next time the model tool is run. In ModelBuilder, I don't have the ability to mark the SDE connection file as Intermediate (the item in the context menu is grayed out). I've also tried adding the Clear Workspace Cache tool to the model, without success.
If you run the model from the tool dialog box (toolbox), intermediate data will not remain ('most' I read somewhere). If there is some intermediate data that you want to keep, in ModelBuilder make the output a model parameter.