We are currently looking at the option of migration our rules to actions. However, over the years, we have created many rules for various applications. Teams changed and now we have no idea which rule is being used for what.
So once we start the migration from rules to actions, I would like to understand if there is a way to find which rule is being used and which of them can be deleted and not moved in the actions.
Programmatically speaking, you should be able to get rules via the Management API, check to see whether or not they are enabled, and decide to delete from there. I believe that should get you what you are looking for.