That facility sort of exists for sandboxed Mac apps, since all incidental files related to the app are under a single container that iirc is deleted if the corresponding app is removed.
Ah then "uninstallation" isn't needed at all, unless it pumps a lot of stuff into ~/Library/Application Support or somewhere, kind of like what Xcode does (I think it forgets about outdated and huge documentation downloads sometimes.)