src/Colorium/Orm/SQL.php
public static function delete($table, array $where = [])
    {
        $sql = $values = [];
        $sql[] = 'DELETE FROM ' . static::e($table);

        if($where) {
            $where = [];
            foreach($where as $exp => $data) {
                $where[] = $exp;
                if(is_array($data)) {
                    $values = array_merge($values, $data);
                    continue;
                }
                $values[] = $data;
            }
            $sql[] = 'WHERE ' . implode(' AND ', $where);
        }

        $sql = implode("\n", $sql);
        return [$sql, $values];
    }
public static function delete($table, array $where = [])
    {
        $sql = $values = [];
        $sql[] = 'DELETE FROM ' . static::e($table);

        if($where) {
            $where = [];
            foreach($where as $exp => $data) {
                $where[] = $exp;
                if(is_array($data)) {
                    $values = array_merge($values, $data);
                    continue;
                }
                $values[] = $data;
            }
            $sql[] = 'WHERE ' . implode(' AND ', $where);
        }

        $sql = implode("\n", $sql);
        return [$sql, $values];
    }
Compile DELETE

@param string $table
@param array $where
@return array