# Delete\_all with include?

**URL:** <https://www.ruby-forum.com/t/delete-all-with-include/135496>\
**Category:** Rails\
**Created:** [April 22, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/delete-all-with-include/135496 "2008-04-22T18:02:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrochkind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/779978/32.png) [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Post date:** [April 22, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/delete-all-with-include/135496/1 "2008-04-22T18:02:23Z")

</div>

So MySQL (among others) does support joints on a DELETE statement. If I  
want to delete\_all type deletion with a join, is there any way to pass  
:include to delete\_all? Doesn’t look like it. Any other good way to do  
this, or should I just use the raw SQL connection?

Thanks for ideas.

Jonathan
