You can permanently remove a rule script from a development component.
If a rule script is being used in the main flow or any other rule flow, you cannot delete it.
For more information, see Locating the Flow Ruleset
Creating a Rule Script
Adding an Action in a Rule Script