---
title: purge
summary: Package purge provides cache purging operations for Fastly Compute.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/purge/
---

**Kind:** Module  
**Package:** compute-sdk-go v1.11.0  
**Path:** `github.com/fastly/compute-sdk-go/purge`

Package purge provides cache purging operations for Fastly
Compute.

See the [Fastly purge documentation](https://developer.fastly.com/learning/concepts/purging/) for details.

## Structs

| Name | Summary |
| --- | --- |
| [PurgeOptions](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/purge/struct.PurgeOptions/) | PurgeOptions control the behavior of purge operations. |

## Functions

| Name | Summary |
| --- | --- |
| [PurgeSurrogateKey](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/purge/fn.PurgeSurrogateKey/) | PurgeSurrogateKey purges all cached objects with the provided surrogate key. |
