public function destroy($id)
    {
        $this->_table->delete(new Entity(
            [$this->_table->getPrimaryKey() => $id],
            ['markNew' => false]
        ));

        return true;
    }
public function destroy($id)
    {
        $this->_table->delete(new Entity(
            [$this->_table->getPrimaryKey() => $id],
            ['markNew' => false]
        ));

        return true;
    }
public function destroy ( $ id ) { $ this -> _table -> delete ( new Entity ( [ $ this -> _table -> getPrimaryKey ( ) => $ id ] , [ 'markNew' => false ] ) ) ; return true ; }
Method called on the destruction of a database session.

@param string|int $id ID that uniquely identifies session in database.
@return bool True for successful delete, false otherwise.
Method called on the destruction of a database session .