Adds code and methods to delete rules or show their details.