---
title: app security clean
description: Remove local app security check results.
source_url:
  html: 'https://shopify.dev/docs/api/shopify-cli/app/app-security-clean'
  md: 'https://shopify.dev/docs/api/shopify-cli/app/app-security-clean.md'
api_name: shopify-cli
---

# app security clean

Deletes the local results of an [`app security check`](https://shopify.dev/docs/api/shopify-cli/app/app-security-check) for the selected app configuration, without asking, and prints each path that it removes. Results for other app configurations are left alone.

To select the same results that the check wrote, pass the same `--path`, `--config`, `--client-id`, and `--without-app-config` flags that you passed to `app security check`. To delete the results for every app configuration, pass `--all` instead of `--config` or `--client-id`.

#### Flags

The following flags are available for the `app security clean` command:

* **--all**

  Delete every results directory under .shopify/app-security/, not only the selected one.

* **--client-id \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_CLIENT\_ID**

  The Client ID of your app.

* **--json-schema**

  **env: SHOPIFY\_FLAG\_JSON\_SCHEMA**

  Print the command's JSON schemas.

* **--no-color**

  **env: SHOPIFY\_FLAG\_NO\_COLOR**

  Disable color output.

* **--no-input**

  **env: SHOPIFY\_FLAG\_NO\_INPUT**

  Disable interactive prompts and browser authentication.

* **--path \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_PATH**

  The path to your app directory.

* **--verbose**

  **env: SHOPIFY\_FLAG\_VERBOSE**

  Increase the verbosity of the output. May include sensitive data.

* **--without-app-config**

  **env: SHOPIFY\_FLAG\_WITHOUT\_APP\_CONFIG**

  Scan --path as an app with no app configuration file. Config checks are skipped. Requires --client-id.

* **-c, --config \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_APP\_CONFIG**

  The name of the app configuration.

### Examples

* #### App security clean

  ##### app security clean

  ```sh
  shopify app security clean
  ```

* #### Delete all results

  ##### Description

  Pass \`--all\` to delete the results for every app configuration, not only the selected one.

  ##### app security clean --all

  ```sh
  shopify app security clean --all
  ```

***
