it is quite easy to create a repository when an app is installed in an org space.
But it’s currently not possible to cleanup after yourself when an app is deleted/removed from an org space.
installation.deleted does not help here, since at that point in time your permissions as app are already revoked. You are not able to do anything on that org anymore.
Is there a known way to cleanup?