This was exactly what I was looking for, thanks for making it!
One question though, it seems like it doesn't delete the top level directory when it purges something, ie. I removed gitlab-ce, it found the sub-directories, of logs, etc. but the top folder of Gitlab-CE remains in app-data. I see this as well with a version of Plex, and MySQL. I can go and manually delete them though...