src/Image.php
public function deleteSourceImagesWithBinaryHash($binaryHash, $organization = '')
    {
        try {
            $response = $this->call('DELETE', implode('/', [self::SOURCEIMAGE_RESOURCE, $this->getOrganizationName($organization)]), ['query' => ['binaryHash' => $binaryHash]]);
        } catch (GuzzleException $e) {
            if (404 == $e->getCode()) {
                return false;
            }

            throw $e;
        }

        return '204' == $response->getStatusCode();
    }
public function deleteSourceImagesWithBinaryHash($binaryHash, $organization = '')
    {
        try {
            $response = $this->call('DELETE', implode('/', [self::SOURCEIMAGE_RESOURCE, $this->getOrganizationName($organization)]), ['query' => ['binaryHash' => $binaryHash]]);
        } catch (GuzzleException $e) {
            if (404 == $e->getCode()) {
                return false;
            }

            throw $e;
        }

        return '204' == $response->getStatusCode();
    }
public function deleteSourceImagesWithBinaryHash ( $ binaryHash , $ organization = '' ) { try { $ response = $ this -> call ( 'DELETE' , implode ( '/' , [ self :: SOURCEIMAGE_RESOURCE , $ this -> getOrganizationName ( $ organization ) ] ) , [ 'query' => [ 'binaryHash' => $ binaryHash ] ] ) ; } catch ( GuzzleException $ e ) { if ( 404 == $ e -> getCode ( ) ) { return false ; } throw $ e ; } return '204' == $ response -> getStatusCode ( ) ; }
Delete source images by binaryhash.

Since the same binaryhash can have different images in rokka, this may delete more than one picture.

@param string $binaryHash   Hash of the image
@param string $organization Optional organization name

@throws GuzzleException If the request fails for a different reason than image not found
@throws \Exception

@return bool True if successful, false if image not found
Delete source images by binaryhash .