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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With