

You don’t really need a self hosted app, you can write a sceipt to do the following:
- Check if file X exists.
- If file X does exist, delete it
- If file X doesn’t exist, delete directory Y
Then create a new scheduled task to run the script every week.
The result is that you have a deadman switch with a weeks delay
Unless you recreate file X every week, directory Y will be deleted.
This is a very simplistic example, but it would be decently difficult to figure out.
It isn’t, it is the least bad