# Verify a statement about AR Base delete vs. destroy

**URL:** <https://www.ruby-forum.com/t/verify-a-statement-about-ar-base-delete-vs-destroy/92178>\
**Category:** Rails\
**Created:** [April 16, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/verify-a-statement-about-ar-base-delete-vs-destroy/92178 "2007-04-16T22:29:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [April 16, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/verify-a-statement-about-ar-base-delete-vs-destroy/92178/1 "2007-04-16T22:29:39Z")

</div>

If I call the delete(id) method on a AR Base descendant, should I expect  
the automatic deletion of child records specified via has\_many  
:children, :dependent =\> :delete\_all to occur or not?

Thanks,  
Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [April 17, 2007, 11:05am UTC](https://www.ruby-forum.com/t/verify-a-statement-about-ar-base-delete-vs-destroy/92178/2 "2007-04-17T11:05:22Z")

</div>

Delete literally just executes “DELETE FROM foos where = 123”. Nothing  
fancy (easily verifiable from the source)

Fred
