---
title: Use surrogate key purges for purge-all and single URL purge
summary: Surrogate key purges are fast and flexible and can be used in place of single URL purge and purge-all.
url: https://www.fastly.com/documentation/solutions/examples/use-surrogate-key-purges-for-purge-all-and-single-url-purge
---

Surrogate key purges are fast and flexible and can be used in place of single URL purge and purge-all.

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/a266cf05)

## Compute

### Rust

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/57fbb4d1)

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/8ccf9f11)

### Go

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/79592017)

