﻿---
title: stack es security clear-cached-privileges cli command
description: Clear the privileges cache. Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/458/cli/stack/es/security/clear-cached-privileges
---

# stack es security clear-cached-privileges cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack es security clear-cached-privileges \
  --application <application> \
  [options]
```

Clear the privileges cache.
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--application string required">
    A comma-separated list of applications. To clear all applications, use an asterism (`*`). It does not support other wildcard patterns.
    **Repeatable:** pass `--application` multiple times to supply more than one value
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--[no-]json">
    output as JSON
  </definition>
</definitions>