# Problem in controller.deleteAllRecords() Method

**URL:** <https://forum.servoy.com/t/problem-in-controller-deleteallrecords-method/9222>\
**Category:** Classic Servoy\
**Created:** [June 23, 2008, 1:41pm UTC](https://forum.servoy.com/t/problem-in-controller-deleteallrecords-method/9222 "2008-06-23T13:41:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Infop](https://avatars.discourse-cdn.com/v4/letter/i/58956e/32.png) [@Infop](https://forum.servoy.com/u/Infop)\
**Post date:** [June 23, 2008, 1:41pm UTC](https://forum.servoy.com/t/problem-in-controller-deleteallrecords-method/9222/1 "2008-06-23T13:41:48Z")

</div>

Hi All,

In one my method, when I am using the controller.deleteAllRecords() Method followed by controller.loadAllRecord() Method, It is not able to delete all the records.

Where as, if I am loping through the all the records and use the deleteRecord() Method, It works fine.

The above behavior is visible only in Servoy version 3.5.4+ and below to that works fine.

So, Is there any condition where deleteAllRecord() Method fails?

Thanks,  
Infop.

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [June 24, 2008, 7:07am UTC](https://forum.servoy.com/t/problem-in-controller-deleteallrecords-method/9222/2 "2008-06-24T07:07:24Z")

</div>

Infop,

In what way does deletion fail, is there an error or are just not all records deleted that you expect to be?

Can you make a small sample solution that shows this?

Rob
