Deleting a function
When you delete a function, you must also delete references to that function from other rules such as expressions, activities, and function aliases. If you delete a function without deleting the references, an error is displayed at run time when Pega Platform tries to call the function.
- In the navigation panel, click Records > Technical > Function and open the function that you want to delete.
- On the Alias tab, for each alias that is listed, click the row to open the Function Alias rule, and delete it.
- Click Actions > View references to find references to the function.
- Modify the reference objects to remove references to the function that you want to delete.
- Click Delete to delete the function.
- In the navigation panel, click Records > Technical > Library and open the library rule that contained the function.
- Click Generate Library to force recompilation of the library.