src/Components/S3FileSystem.php
public function deleteBlob($container = '', $name = '', $noCheck = false)
    {
        try {
            $this->checkConnection();

            if (!$noCheck) {
                $this->blobConn->getObject(
                    [
                        'Bucket' => $container,
                        'Key'    => $name
                    ]
                );
            }

            $this->blobConn->deleteObject(
                [
                    'Bucket' => $container,
                    'Key'    => $name
                ]
            );
        } catch (\Exception $ex) {
            if ($ex instanceof S3Exception) {
                if ($ex->getStatusCode() === HttpStatusCodes::HTTP_NOT_FOUND) {
                    throw new NotFoundException("File '$name' was not found.'");
                }
            }
            throw new DfException('Failed to delete blob "' . $name . '": ' . $ex->getMessage());
        }
    }
public function deleteBlob($container = '', $name = '', $noCheck = false)
    {
        try {
            $this->checkConnection();

            if (!$noCheck) {
                $this->blobConn->getObject(
                    [
                        'Bucket' => $container,
                        'Key'    => $name
                    ]
                );
            }

            $this->blobConn->deleteObject(
                [
                    'Bucket' => $container,
                    'Key'    => $name
                ]
            );
        } catch (\Exception $ex) {
            if ($ex instanceof S3Exception) {
                if ($ex->getStatusCode() === HttpStatusCodes::HTTP_NOT_FOUND) {
                    throw new NotFoundException("File '$name' was not found.'");
                }
            }
            throw new DfException('Failed to delete blob "' . $name . '": ' . $ex->getMessage());
        }
    }
@param string $container
@param string $name
@param bool   $noCheck

@throws DfException