Imbo\Storage\Doctrine::delete PHP Method

delete() public method

public delete ( $user, $imageIdentifier )
    public function delete($user, $imageIdentifier)
    {
        if (!$this->imageExists($user, $imageIdentifier)) {
            throw new StorageException('File not found', 404);
        }
        return (bool) $this->getConnection()->delete($this->getTableName($user, $imageIdentifier), ['user' => $user, 'imageIdentifier' => $imageIdentifier]);
    }