# Cannot remove AppFlow

**URL:** <https://forum.ionicframework.com/t/cannot-remove-appflow/166740>\
**Category:** Appflow\
**Created:** [June 20, 2019, 6:15am UTC](https://forum.ionicframework.com/t/cannot-remove-appflow/166740 "2019-06-20T06:15:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wherewolfnz](https://avatars.discourse-cdn.com/v4/letter/w/77aa72/32.png) [@wherewolfnz](https://forum.ionicframework.com/u/wherewolfnz)\
**Post date:** [June 20, 2019, 6:15am UTC](https://forum.ionicframework.com/t/cannot-remove-appflow/166740/1 "2019-06-20T06:15:06Z")

</div>

Hey,

I followed these steps: [https://ionicframework.com/docs/appflow/quickstart/connect](https://ionicframework.com/docs/appflow/quickstart/connect)

Got AppFlow working as a test, all great. Deployed a change and it was picked up.

Now I want to get rid of AppFlow and just run another version of my app without AppFlow.

I have switched back to my branch with no AppFlow work, and have done the following:

- Reinstalled node modules

- Removed the ionic plugin

- This actually fails because the plugin does not exist anyway on this branch

```auto
$ cordova plugin list
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-device 2.0.1 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.4.1 "cordova-plugin-ionic-webview"
cordova-plugin-market 1.2.0 "Market"
cordova-plugin-memory-status 1.0.0 "MemoryStatus"
cordova-plugin-memory-warning 1.0.0 "CordovaPluginMemoryWarning"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 3.2.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"

```

- Removed and added ios:

- Rebuilt the app

- Prepared the app

- Removed DerivedData from xcode

- Removed the app from simulator

- Deployed the app to a different simulator device

When I run the app through xcode or using `ionic cordova emulate ios` it will always show the last version I pushed to the master channel in AppFlow, I can see in xcode the output that is fetching that release:

```auto
{
    appId = id;
    availableUpdate = {
        binaryVersionCode = "1.0.0";
        binaryVersionName = "1.12.2";
        buildId = id;
        channel = Master;
        lastUsed = "2019-06-20T06:07:15.258Z";
        state = ready;
        url = "https://api.ionicjs.com/apps/...etc...";
        versionId = "id";
    };
    binaryVersion = "1.12.2";
    binaryVersionCode = "1.0.0";
    binaryVersionName = "1.12.2";
    channel = Master;
    disabled = 0;
    host = "https://api.ionicjs.com";
    maxVersions = 2;
    minBackgroundDuration = 30;
    updateMethod = background;
    updates = {
        "id" = {
            binaryVersionCode = "1.0.0";
            binaryVersionName = "1.12.2";
            buildId = 6551846;
            channel = Master;
            lastUsed = "2019-06-20T06:07:15.258Z";
            state = ready;
            url = "https://api.ionicjs.com/apps/...etc...";
            versionId = "id";
        };
    };
}

```

---

<div class="post-metadata">

**Author:** ![wherewolfnz](https://avatars.discourse-cdn.com/v4/letter/w/77aa72/32.png) [@wherewolfnz](https://forum.ionicframework.com/u/wherewolfnz)\
**Post date:** [June 20, 2019, 6:30am UTC](https://forum.ionicframework.com/t/cannot-remove-appflow/166740/2 "2019-06-20T06:30:14Z")

</div>

Despite doing all of the above I found in the plugins directory contained information about ionic app flow

plugins/fetch.json

```auto
  "cordova-plugin-ionic": {
    "source": {
      "type": "registry",
      "id": "cordova-plugin-ionic@5.3.0"
    },
    "is_top_level": true,
    "variables": {
      "APP_ID": "id",
      "CHANNEL_NAME": "Master",
      "UPDATE_METHOD": "background",
      "UPDATE_API": "https://api.ionicjs.com",
      "MAX_STORE": "2",
      "MIN_BACKGROUND_DURATION": "30"
    }
  },

```

plugins/ios.json:

```auto
    "cordova-plugin-ionic": {
      "APP_ID": "id",
      "CHANNEL_NAME": "Master",
      "UPDATE_API": "https://api.ionicjs.com",
      "UPDATE_METHOD": "background",
      "MAX_STORE": "2",
      "MIN_BACKGROUND_DURATION": "30",
      "PACKAGE_NAME": "$(PRODUCT_BUNDLE_IDENTIFIER)"
    },

```

So I removed the plugins directory

```
rm -r plugins

```

Then readded ios platform

```
ionic cordova platform remove ios
ionic cordova platform add ios

```

And that solved the problem

---

<div class="post-metadata">

**Author:** ![erthungary](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@erthungary](https://forum.ionicframework.com/u/erthungary)\
**Post date:** [October 24, 2019, 2:12pm UTC](https://forum.ionicframework.com/t/cannot-remove-appflow/166740/3 "2019-10-24T14:12:09Z")

</div>

I mean is this really the solution? After adding the Appflow Deploy with an update setting=none I was not able to change it. So I can change it only if I remove the entire platform? WHY? WHAT? HOW? And there is nothing in my config.xml that I can overwrite, only the android.json has info about the deployment…

---

<div class="post-metadata">

**Author:** ![Fever905](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@Fever905](https://forum.ionicframework.com/u/Fever905)\
**Post date:** [October 24, 2019, 3:54pm UTC](https://forum.ionicframework.com/t/cannot-remove-appflow/166740/4 "2019-10-24T15:54:56Z")

</div>

For stuff like this I have found it best to remove the platform folder, then add in your ios/android platforms again.

Hey, this isn’t related to your issue, but do you know the correct syntax to use to get the cordova.plugin.memory-status plugin to return a status? I’ve been stuck on this for 2 days now.

---

<div class="post-metadata">

**Author:** ![VSEIonic](https://avatars.discourse-cdn.com/v4/letter/v/e95f7d/32.png) [@VSEIonic](https://forum.ionicframework.com/u/VSEIonic)\
**Post date:** [October 20, 2020, 3:21pm UTC](https://forum.ionicframework.com/t/cannot-remove-appflow/166740/5 "2020-10-20T15:21:49Z")

</div>

You dont need to remove plugin , just remove id from your ionic.config,json file and you all set. it unlink from a project.

![image](https://global.discourse-cdn.com/ionicframework/original/3X/6/e/6e3c30e7a188d919dcc000f6a549c60c09b9417f.png)
