is there a way to make a "user" login script that once executed, will delete itself.

If so could an example be provided?

Thanks in advance,
-Todd F.