# pw workflows runs clean

> Source: https://parallelworks.com/docs/cli/pw/workflows/runs/clean

## pw workflows runs clean

Delete workflow runs based on filters

```
pw workflows runs clean [flags]
```

### Examples

```
  # Delete runs older than 7 days
  pw workflows runs clean --older-than-days 7
  
  # Delete all completed runs
  pw workflows runs clean --status completed
  
  # Delete specific runs by slug
  pw workflows runs clean --slugs swift-falcon-17,quiet-river-83
  
  # Delete completed runs older than 30 days
  pw workflows runs clean --older-than-days 30 --status completed
```

### Options

```
  -h, --help                  help for clean
      --older-than-days int   Delete runs older than N days
      --slugs string          Comma-separated list of run slugs to delete
      --status string         Delete runs with status (completed, error, canceled)
```

### 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 workflows runs](/docs/cli/pw/workflows/runs)	 - Manage workflow runs
