src/DataStore/src/DataStore/Cacheable.php
public function publicdelete($id)
    {
        if (method_exists($this->dataSource, "delete")) {
            return $this->dataSource->delete($id);
        } else {
            throw new DataStoreException("Refreshable don't haw method delete");
        }
    }
public function publicdelete($id)
    {
        if (method_exists($this->dataSource, "delete")) {
            return $this->dataSource->delete($id);
        } else {
            throw new DataStoreException("Refreshable don't haw method delete");
        }
    }
public function publicdelete ( $ id ) { if ( method_exists ( $ this -> dataSource , "delete" ) ) { return $ this -> dataSource -> delete ( $ id ) ; } else { throw new DataStoreException ( "Refreshable don't haw method delete" ) ; } }
Delete Item by id. Method do nothing if item with that id is absent.

@param int|string $id PrimaryKey
@return int number of deleted items: 0 , 1 or null if object doesn't support it
@throws DataStoreException
Delete Item by id . Method do nothing if item with that id is absent .