# cscli appsec-rules remove

## cscli appsec-rules remove[​](#cscli-appsec-rules-remove "Direct link to cscli appsec-rules remove")

Remove given appsec-rule(s)

### Synopsis[​](#synopsis "Direct link to Synopsis")

Remove one or more appsec-rules

TEXTCOPY

```
cscli appsec-rules remove [item]... [flags]
```

### Examples[​](#examples "Direct link to Examples")

TEXTCOPY

```
# Uninstall some waf-rules.
cscli waf-rules remove crowdsecurity/crs

# Show the execution plan without changing anything - compact output sorted by type and name.
cscli waf-rules remove crowdsecurity/crs --dry-run

# Show the execution plan without changing anything - verbose output sorted by execution order.
cscli waf-rules remove crowdsecurity/crs --dry-run -o raw

# Uninstall and also remove the downloaded files.
cscli waf-rules remove crowdsecurity/crs --purge

# Remove tainted items.
cscli waf-rules remove crowdsecurity/crs --force

# Prompt for confirmation if running in an interactive terminal; otherwise, the option is ignored.
cscli waf-rules remove crowdsecurity/crs -i
cscli waf-rules remove crowdsecurity/crs --interactive
```

### Options[​](#options "Direct link to Options")

TEXTCOPY

```
      --all           Remove all the appsec-rules
      --dry-run       Don't install or remove anything; print the execution plan
      --force         Force remove: remove tainted and outdated files
  -h, --help          help for remove
  -i, --interactive   Ask for confirmation before proceeding
      --purge         Delete source file too
```

### Options inherited from parent commands[​](#options-inherited-from-parent-commands "Direct link to Options inherited from parent commands")

TEXTCOPY

```
      --color string    Output color: yes, no, auto (default "auto")
  -c, --config string   path to crowdsec config file (default "/etc/crowdsec/config.yaml")
      --debug           Set logging to debug
      --error           Set logging to error
      --info            Set logging to info
  -o, --output string   Output format: human, json, raw
      --trace           Set logging to trace
      --warning         Set logging to warning
```

### SEE ALSO[​](#see-also "Direct link to SEE ALSO")

* [cscli appsec-rules](https://docs.crowdsec.net/docs/next/cscli/cscli_appsec-rules.md) - Manage hub appsec-rules
