tags:

views:

331

answers:

2

Hi, as there is a process to create a controller or a domain class via grails create-XXX, are there any considerations be aware of for their removal ? Or is it enough to delete the class and the corresponding test ? Thanks.

+1  A: 

There's no command to remove them. Along with deleting the domain class, tests, and controller you need to delete any views you have created for that domain class.

Jared
+1  A: 

Hi, there's no automated removal - when I delete a controller I delete the tests, and any views that are no longer relevant.

You will need to make sure your controller is not referenced in any gsps (e.g by searching for tags containing controller="myController" or controller: "myController").

hth

Dave