>I understand that it can't be done when the form is in use. But is there a way to clear the APP from memory when the form is closed?
No way without closing VFP. Unless your form is excluded from the project.
If it's not broken, fix it until it is.
My Blog