1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
## Setup
You will need to instantiate the container object and access its CDN functionality as
[documented here](https://github.com/rackspace/php-opencloud/blob/master/docs/userguide/ObjectStore/CDN/Container.md).
## Purge CDN-enabled objects
To remove a CDN object from public access:
```php
$object->purge();
```
You can also provide an optional e-mail address (or comma-delimeted list of e-mails), which the API will send a
confirmation message to once the object has been completely purged:
```php
$object->purge('jamie.hannaford@rackspace.com');
$object->purge('hello@example.com,hallo@example.com');
```
|