tencent cloud

All product documents
Tencent Cloud Super App as a Service
Deleting Mini Programs
Last updated: 2025-01-08 17:39:43
Deleting Mini Programs
Last updated: 2025-01-08 17:39:43
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);

Delete all mini programs

Delete all cached mini programs.
API description:
/**
* Delete all mini programs (official/developer/preview)
*
*/
public static void clearMiniAppCache();
Sample code:
// Delete all mini programs
TmfMiniSdk.clearMiniAppCache();

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

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 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon