Is it possible to delete a callback when it has been run once?

I have a callback on filepostsave, but it gets triggered quite a lot. I would like it to run once, then delete the callback so it doesn’t harass the user.

Any ideas on implementing this?



why not removing it right from the callback function?