diff --git a/salsa_entity.inc b/salsa_entity.inc
index 4388f89..4405392 100644
--- a/salsa_entity.inc
+++ b/salsa_entity.inc
@@ -112,12 +112,7 @@ class SalsaController extends EntityAPIController implements EntityAPIController
       return;
     }
 
-    $query_info = array(
-      '#script' => 'delete',
-      '#tables' => $this->salsaType,
-      '#fields' => $ids,
-    );
-    salsa_api_query($query_info);
+    salsa_api()->delete($this->salsaType, $ids);
 
     foreach ($entities as $id => $entity) {
       $this->invoke('delete', $entity);
