Grails - remove from join table and delete the hasMany objects <p>I have the following domain classes:</p> <pre><code>class Shift { //etc } </code></pre> <p>and</p> <pre><code>class Schedule{ //etc static hasMany = [shifts:Shift] //etc } </code></pre> <p>Currently In a delete controller action I do a schedule.shifts.clear() and then a schedule.delete(). This deletes the schedule record itself and the associations in th ejoin table, but the shift objects are still in existence. How do I delete these also at the same time?</p>