Delete app and files from within app.

Quite simple really:

I’d like the app that’s running to clean up after itself and remove itself as it’s last task.

Any ideas as to how I could do this?

This is an AppleScript Objective C app, so am happy to mix applescript and cocoa if need be.

The app does NOT have elevated privileges, however, and I can’t / don’t want to ask the user

Have you tried simply having it tell file manager to remove it or move it to the trash?