Disposable (one time use) automations/scripts?

Hi, sometimes I have a use for one time automation or script. Scenario: I want to leave my house and I want something to be done once I am away (triggered by garage door closed), or when I arrive…or after 15minutes from now etc etc etc…

Is there any option to make one-time automation that removes itself after being executed?
It would be great to have this option directly in automations - either as “mark this automation as disposable” or as call service: automation.remove etc
Thanks!

There is a HACS integration called spook which adds a bunch of new services to HA, one of them being “delete automation”. I didn’t try to use that to delete the automation calling the service but I guess if it’s the last operation it could work.

Hi, thanks for answer. Will look into it. I don’t have currently HACS installed so it is not so straightforward for me to test this integration right now