At the next boot of the OS, when you application starts of if you want to be "aggressive" when you application closes ?
[That may be too soon. The application you dropped the file onto may have embedded a link. You can't delete the file as long as that link still exists. -Raymond]