addition of cleanup code

TODO: really need to delete all to start again. If you dismiss and
invite at the mo that means you can’t be sent another. Might need a
policy on that such as old ones are removed once a week