Anyone know how to add a post-compile directive?

I need to delete a file but only after compilation has completed.

Sim