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

            throw $e;
        }

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

            throw $e;
        }

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

@param string $hash         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 a source image .