# Find Unused Rules while migrating to Actions

**URL:** <https://community.auth0.com/t/find-unused-rules-while-migrating-to-actions/81600>\
**Category:** Get Help\
**Tags:** actions, migration, rules\
**Created:** [April 12, 2022, 8:48am UTC](https://community.auth0.com/t/find-unused-rules-while-migrating-to-actions/81600 "2022-04-12T08:48:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shobhit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shobhit/32/36535_2.png) [@shobhit](https://community.auth0.com/u/shobhit)\
**Post date:** [April 12, 2022, 8:48am UTC](https://community.auth0.com/t/find-unused-rules-while-migrating-to-actions/81600/1 "2022-04-12T08:48:47Z")

</div>

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.

Best,  
Shobhit Singh

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 12, 2022, 10:58pm UTC](https://community.auth0.com/t/find-unused-rules-while-migrating-to-actions/81600/4 "2022-04-12T22:58:34Z")

</div>

Hello there @shobhit welcome to the community!

> [@shobhit](#):
>
> 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](https://auth0.com/docs/api/management/v2?/Rules/get_rules#!/Rules/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.

Let us know!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 27, 2022, 10:59pm UTC](https://community.auth0.com/t/find-unused-rules-while-migrating-to-actions/81600/5 "2022-04-27T22:59:01Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
