src/Database/Model.php
public function delete()
    {
        // Delete row
        $result = static::connection()
            ->delete()
            ->from(static::table())
            ->where(static::$_primaryKey . " = ?", $this->{static::$_primaryKey})
            ->limit(1)
            ->exec();

        // Run filters
        if ($result) {
            $this->runFilters('after', 'delete');
        }

        return $result;
    }
public function delete()
    {
        // Delete row
        $result = static::connection()
            ->delete()
            ->from(static::table())
            ->where(static::$_primaryKey . " = ?", $this->{static::$_primaryKey})
            ->limit(1)
            ->exec();

        // Run filters
        if ($result) {
            $this->runFilters('after', 'delete');
        }

        return $result;
    }
public function delete ( ) { // Delete row $ result = static :: connection ( ) -> delete ( ) -> from ( static :: table ( ) ) -> where ( static :: $ _primaryKey . " = ?" , $ this -> { static :: $ _primaryKey } ) -> limit ( 1 ) -> exec ( ) ; // Run filters if ( $ result ) { $ this -> runFilters ( 'after' , 'delete' ) ; } return $ result ; }
Deletes the row from the database.

@return boolean
Deletes the row from the database .