tns platform remove
Description
Removes the selected platform from the platforms that the project currently targets. After removing the target platform, you can no longer build and deploy your app on devices which run on the platform. You must specify the target platform that you want to remove.
This operation deletes the subdirectory for the selected platform from the platforms directory.
Commands
Usage | Synopsis |
---|---|
General | $ tns platform remove <Platform> |
General | $ tns platform remove android |
Arguments
<Platform>
is the target mobile platform that
you want to remove from your project. You can set the following
target platforms.
-
android
- Removes configuration changes for Android development. -
ios
- Removes configuration changes for iOS development.
Command Limitations
-
You can run
$ tns platform remove ios
only on macOS systems.
Related Commands
Command | Description |
---|---|
install |
Installs all platforms and dependencies described in the
package.json file in the current directory.
|
platform add | Configures the current project to target the selected platform. |
platform update | Updates the NativeScript runtime for the specified platform. |
platform | Lists all platforms that the project currently targets. |
prepare | Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory. |