Index: /trunk/glueforge/templates/psdb/delete.tt
===================================================================
--- /trunk/glueforge/templates/psdb/delete.tt	(revision 8117)
+++ /trunk/glueforge/templates/psdb/delete.tt	(revision 8118)
@@ -3,10 +3,8 @@
     long long       deleted = 0;
 
-    for (long long i = 0; i < objects->n; i++) {
-        long long count = psDBDeleteRows(dbh, [% table.namespace FILTER upper %]_TABLE_NAME, where, limit);
-        if (count < 0) {
-            psError(PS_ERR_UNKNOWN, true, "failed to delete row from [% table.namespace %]");
-            return count;
-        }
+    long long count = psDBDeleteRows(dbh, [% table.namespace FILTER upper %]_TABLE_NAME, where, limit);
+    if (count < 0) {
+        psError(PS_ERR_UNKNOWN, true, "failed to delete row from [% table.namespace %]");
+        return count;
 
         deleted += count;
