# pw environments delete

> Source: https://parallelworks.com/docs/cli/pw/environments/delete

## pw environments delete

Delete a custom environment

### Synopsis

The **pw environments delete** command deletes a custom environment.

Environments the cluster detected for itself have a source of
**auto-detected** and cannot be deleted. To stop sessions being scheduled onto
one, run **pw environments update --status inactive** instead.

```
pw environments delete <environment> [flags]
```

### Examples

```
  # Delete a custom environment
  pw environments delete --cluster my-hpc gpu-large
  
  # Delete an environment on another user's cluster
  pw environments delete --cluster pw://Jake.Thayne/my-hpc gpu-large
```

### Options

```
      --cluster string   Cluster the environment belongs to (required)
  -h, --help             help for delete
```

### Options inherited from parent commands

```
      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
  -v, --verbose                Enable verbose logging
```

### SEE ALSO

* [pw environments](/docs/cli/pw/environments)	 - Manage compute environments
