tencent cloud

Feedback

Deleting mini programs

Last updated: 2024-06-27 11:08:59
    Note:
    Running a mini program stores the program package and information locally for faster access in the future. If you want to delete all information of a mini program, you can use the following API to delete a specific mini program or all mini programs.

    Deleting a mini program by mini program ID

    API description:
    /**
     * Delete a mini app based on `appId`, regardless of the version (official/developer/preview)
     * @param appId
     */
    public static void deleteMiniApp(String appId)
    Sample code:
    //Delete a mini program with a specific ID
    TmfMiniSdk.deleteMiniApp(appId);

    Deleting a mini program of a specified version type and version number

    Delete a mini program of the specified type and the specified version。
    API description:
    /**
    * Delete a mini program of the specified type and the specified version
    * @param appId
    * @param appVerType
    * @param version
    */
    public static void deleteMiniApp(String appId, int appVerType, String version)
    Sample code:
    Note:
    The parameter `appId` is the ID of the mini program.
    The parameter 'appVerType' refers to the type of the mini program. You can refer to the mini program type description.
    The parameter 'version' is the version number of the mini program.
    //Delete a mini program with a specific ID, type and version number
    TmfMiniSdk.deleteMiniApp(appId,appVerType,version);
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support