---
title: app dev clean
description: Stop the dev preview that was started with shopify app dev.
source_url:
  html: 'https://shopify.dev/docs/api/shopify-cli/app/app-dev-clean'
  md: 'https://shopify.dev/docs/api/shopify-cli/app/app-dev-clean.md'
api_name: shopify-cli
---

# app dev clean

Stop the dev preview that was started with `shopify app dev`.

It restores the app's active version to the selected development store.

#### Flags

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

* **--auth-alias \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_AUTH\_ALIAS**

  Alias of the Shopify account to use for authentication.

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

  **string**

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

  The Client ID of your app. Use with --config to clean up the dev preview for a different app than the one it is linked to.

* **--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.

* **--reset**

  **env: SHOPIFY\_FLAG\_RESET**

  Reset all your settings.

* **--verbose**

  **env: SHOPIFY\_FLAG\_VERBOSE**

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

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

  **string**

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

  The name of the app configuration.

* **-s, --store \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_STORE**

  Store URL. Must be an existing development store.

### Examples

* #### App dev clean

  ##### app dev clean

  ```sh
  shopify app dev clean [flags]
  ```

***
