library/database/class.sqldriver.php
public function Delete($Table = '', $Where = '', $Limit = FALSE) {
      if ($Table == '') {
         if (!isset($this->_Froms[0]))
            return FALSE;

         $Table = $this->_Froms[0];
      } elseif (is_array($Table)) {
         foreach ($Table as $t) {
            $this->Delete($t, $Where, $Limit, FALSE);
         }

         return;
      } else {
         $Table = $this->EscapeIdentifier($this->Database->DatabasePrefix.$Table);
      }

      if ($Where != '')
         $this->Where($Where);

      if ($Limit !== FALSE)
         $this->Limit($Limit);

      if (count($this->_Wheres) == 0)
         return FALSE;

      $Sql = $this->GetDelete($Table, $this->_Wheres, $this->_Limit);

      return $this->Query($Sql, 'delete');
   }
public function Delete($Table = '', $Where = '', $Limit = FALSE) {
      if ($Table == '') {
         if (!isset($this->_Froms[0]))
            return FALSE;

         $Table = $this->_Froms[0];
      } elseif (is_array($Table)) {
         foreach ($Table as $t) {
            $this->Delete($t, $Where, $Limit, FALSE);
         }

         return;
      } else {
         $Table = $this->EscapeIdentifier($this->Database->DatabasePrefix.$Table);
      }

      if ($Where != '')
         $this->Where($Where);

      if ($Limit !== FALSE)
         $this->Limit($Limit);

      if (count($this->_Wheres) == 0)
         return FALSE;

      $Sql = $this->GetDelete($Table, $this->_Wheres, $this->_Limit);

      return $this->Query($Sql, 'delete');
   }
public function Delete ( $ Table = '' , $ Where = '' , $ Limit = FALSE ) { if ( $ Table == '' ) { if ( ! isset ( $ this -> _Froms [ 0 ] ) ) return FALSE ; $ Table = $ this -> _Froms [ 0 ] ; } elseif ( is_array ( $ Table ) ) { foreach ( $ Table as $ t ) { $ this -> Delete ( $ t , $ Where , $ Limit , FALSE ) ; } return ; } else { $ Table = $ this -> EscapeIdentifier ( $ this -> Database -> DatabasePrefix . $ Table ) ; } if ( $ Where != '' ) $ this -> Where ( $ Where ) ; if ( $ Limit !== FALSE ) $ this -> Limit ( $ Limit ) ; if ( count ( $ this -> _Wheres ) == 0 ) return FALSE ; $ Sql = $ this -> GetDelete ( $ Table , $ this -> _Wheres , $ this -> _Limit ) ; return $ this -> Query ( $ Sql , 'delete' ) ; }
Builds and executes a delete from query.

@param mixed $Table The table (or array of table names) to delete from.
@param mixed $Where The string on the left side of the where comparison, or an associative
array of Field => Value items to compare.
@param int $Limit The number of records to limit the query to.
Builds and executes a delete from query .