---
title: wpe envs purge
description: Manually purge the domain cache for a specified application environment.
url: https://developers.wpengine.com/docs/headless-platform/reference/cli/wpe/envs/purge/
image: https://developers.wpengine.com/og/docs/headless-platform/reference/cli/wpe/envs/purge.png
---

# wpe envs purge

## Description

Manually purge the domain cache for a specified application environment.

## Usage

Terminal window

```bash
$ wpe envs purge $ENV_ID [OPTIONS]
```

## Extended Description

The `wpe envs purge` command allows you to purge the domain cache for a specified application environment.

## Options

```
--app, -a    The app name
--help, -h   Help for purge
```

## Examples

Let’s assume the environment ID is `bmna3gedlzerwcb4vc04gssl` and the app name is `myapp`. Running the following command will purge the domain cache for environment:

Terminal window

```bash
$ wpe envs purge bmna3gedlzerwcb4vc04gssl -a myapp
```

## Was this helpful?

Thanks for the feedback!

```json
{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://developers.wpengine.com/#website","name":"WP Engine Product Documentation","url":"https://developers.wpengine.com/","description":"Resources for developing, deploying, and scaling on WP Engine.","inLanguage":"en-US","keywords":["API documentation","product documentation","headless WordPress","managed WordPress hosting"],"publisher":{"@id":"https://wpengine.com/#organization"}}]}
```
