GitS3\Wrapper\Bucket::delete PHP Method

delete() public method

public delete ( $fileName )
    public function delete($fileName)
    {
        try {
            $this->client->deleteObject(array('Bucket' => $this->name, 'Key' => $fileName));
        } catch (InstanceProfileCredentialsException $e) {
            throw new InvalidAccessKeyIdException("The AWS Access Key Id you provided does not exist in our records.");
        }
    }