+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Using the stand-alone tool to delete an application

To delete an application from the Application Center, call the stand-alone tool from the command line.


Procedure

Use the stand-alone tool by following these steps.

  1. Add applicationcenterdeploytool.jar and json4j.jar to the java classpath environment variable.
  2. Call the upload tool from the command line:

      java com.ibm.appcenter.Upload -delete [options] [files or applications]

    We can pass any of the available options in the command line.

    Option Content indicated by Description
    -s serverpath The path to the Application Center server.
    -c context The context of the Application Center web application.
    -u user The user credentials to access the Application Center.
    -p password The password of the user.
    -y   Disable SSL security checking, which allows publishing on secured hosts without verification of the SSL certificate. Use of this flag is a security risk, but may be suitable for testing localhost with temporary self-signed SSL certificates.

    We can specify files or the application package, operating system, and version. If files are specified, the package, operating system and version are determined from the file and the corresponding application is deleted from the Application Center. If applications are specified, they must have one of the following formats:

    package@os@version: This exact version is deleted from the Application Center. The version part must specify the “internal version”, not the “commercial version” of the application.

    package@os: All versions of this application are deleted from the Application Center.

    package: All versions of all operating systems of this application are deleted from the Application Center.


Example

In this example, user demo has the password demopassword. Use this command line to delete the iOS application demo.HelloWorld with internal version 3.0.

Parent topic: Command-line tool for uploading or deleting an application