---
title: purge_surrogate_key
summary: Purge a surrogate key for the current service.
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/purge/fn.purge_surrogate_key/
---

**Kind:** Function  
**Module:** [purge](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/http/purge/)  
**Package:** fastly 0.13.1  
**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/http/purge.rs#17

```rust
fn purge_surrogate_key(surrogate_key: &str) -> Result<(), Error>
```

Purge a surrogate key for the current service.

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

**Parameters**

- `surrogate_key`: `&str`

**Returns**

`Result<(), crate::Error>`
