---
title: PurgeOptions
summary: Options for purge operations.
url: https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/cache/simple/class.PurgeOptions/
---

**Kind:** Class  
**Module:** [simple](https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/cache/simple/)  
**Package:** compute-sdk-cpp 0.7.0  
**Source:** https://github.com/fastly/compute-sdk-cpp/blob/ff911e47be2f319e83a9cde960d2c3c5db534280/include/fastly/cache/simple.h#L64

Include `fastly/cache/simple.h` to use this class.

Options for purge operations.

## Methods

### global_scope

**Flags:** static  
**Source:** https://github.com/fastly/compute-sdk-cpp/blob/ff911e47be2f319e83a9cde960d2c3c5db534280/include/fastly/cache/simple.h#L85

```cpp
static PurgeOptions fastly::cache::simple::PurgeOptions::global_scope()
```

Purge the key globally.

This requires the Fastly global purge feature to be enabled for your service. See the [Fastly purge documentation](https://developer.fastly.com/learning/concepts/purging/) for details.

**Returns**

`PurgeOptions`

### pop_scope

**Flags:** static  
**Source:** https://github.com/fastly/compute-sdk-cpp/blob/ff911e47be2f319e83a9cde960d2c3c5db534280/include/fastly/cache/simple.h#L77

```cpp
static PurgeOptions fastly::cache::simple::PurgeOptions::pop_scope()
```

Purge the key from the current POP (default behavior).

This is the default option, and allows a higher throughput of purging than purging globally.

**Returns**

`PurgeOptions`

### scope

**Source:** https://github.com/fastly/compute-sdk-cpp/blob/ff911e47be2f319e83a9cde960d2c3c5db534280/include/fastly/cache/simple.h#L87

```cpp
Scope fastly::cache::simple::PurgeOptions::scope() const
```

**Returns**

`Scope`
