Remove all URCap Features

Currently I have a program node that calls the installation api and creates a feature. The issue now is that when the node is deleted the feature still remains. Since I couldn’t find anything related to an “on delete” node callback, I am limited to creating a button the node to delete the feature. With this however, another issues arises where if a user deletes the node without pressing the button, the feature will remain and can’t be removed. Is there a way to list all URCap features from the installation node and allow a user to delete them from there perhaps? Any other suggestions greatly appreciated.