I've created a geoprocessing model that uses the Import Message tool in the Distributed Geodatabase toolset. Once the model is complete, I'd like to delete the data changes message XML file used by the tool. However, I get a file lock error when trying to delete the XML file. I've tried adding the Clear Workspace Cache tool to the model before deleting the XML file, but without success.
once a lock occurs, you are done...until arcmap restarts...however, why don't you add a process to the beginning of your model that checks for the existence of the file and tries to delete it before the rest of the model.