src/Handler/FileHandler.php
public function delete(TargetInterface $target, array $variants = [])
    {
        $success = true;

        if ( ! in_array(static::ORIGINAL, $variants)) {
            $variants[] = static::ORIGINAL;
        }

        foreach ($variants as $variant) {
            if ( ! $this->deleteVariant($target, $variant)) {
                $success = false;
            }
        }

        return $success;
    }
public function delete(TargetInterface $target, array $variants = [])
    {
        $success = true;

        if ( ! in_array(static::ORIGINAL, $variants)) {
            $variants[] = static::ORIGINAL;
        }

        foreach ($variants as $variant) {
            if ( ! $this->deleteVariant($target, $variant)) {
                $success = false;
            }
        }

        return $success;
    }
public function delete ( TargetInterface $ target , array $ variants = [ ] ) { $ success = true ; if ( ! in_array ( static :: ORIGINAL , $ variants ) ) { $ variants [ ] = static :: ORIGINAL ; } foreach ( $ variants as $ variant ) { if ( ! $ this -> deleteVariant ( $ target , $ variant ) ) { $ success = false ; } } return $ success ; }
Deletes a file and all indicated variants.

@param TargetInterface $target
@param string[]        $variants     variant keys
@return bool
Deletes a file and all indicated variants .