Ok, so your application copies the MDB to a local system.

That being the case, your application should know where it copied it to, so deleting it shouldn't be a problem.

As dee-u said, if you place your delete code in the unload event of your main form, then when your application closes, it will delete the .mdb