Removing an app

You can remove your app from the device or simulator using various methods.

You may want to remove an app from your device or simulator because you don't need a specific app anymore or you want to clean up your device of all the unused apps. There are several different ways you can remove an app from your device or simulator.

Remove an app using the device's display

You can remove an app from the display of your device or simulator.

To remove an app using the screen display of your device or simulator:

  1. Navigate to the home screen to locate the app that you want to remove.
  2. Touch and hold the app icon until all the icons begin to blink.
  3. Tap the trash icon for the app you want to remove.

Remove an app using the IDE

You can remove an app from your device or simulator using the Momentics IDE.

To remove an app using the IDE tools:

  1. Make sure your device or simulator is properly connected.
  2. Launch the IDE.
  3. In the C/C++ perspective, in the Project Explorer, locate the app that you want to remove.
  4. Find the BAR file under the BAR Packages folder of the app.
  5. Right-click the BAR file and select BlackBerry Tools > Uninstall.

Remove an app using command-line tools

You can remove an app from your device or simulator using the command line tools.

To remove your app using the command line tool:

  1. Make sure your device or simulator is properly connected.
  2. In a command prompt window, navigate to the workspace that contains the app you want to remove and make note of the address of the location of the BAR file for your app.
    For example: C:/workspace/appname/Device-Release/appname.bar
  3. Navigate to the tools directory where you installed the Momentics IDE.
    The tools directory is located under: [path to NDK]/host_N_N_N_N/win32/x86/usr/bin where N are numbers representing the release version of your IDE.
  4. Type the following command:
    For Windows,
    blackberry-deploy -uninstallApp -device IP_address -package bar_file_name -password device_password
    
    For Mac/Linux
    ./blackberry-deploy -uninstallApp -device IP_address -package bar_file_name -password device_password
    • IP_address: The IP Address of the device or simulator.
    • bar_file_name: Absolute path address of the BAR file found in step 1.
    • device_password: The password of the device or simulator.

    For example, if you connect to a device with the IP address of 169.254.0.1, with a password BBRocks123, a command to remove an app named appname on Windows might be:

    blackberry-deploy -uninstallApp -device 169.254.0.1 -package C:/workspace/appname/Device-Release/appname.bar -password BBRocks123

Last modified: 2013-12-21

comments powered by Disqus