tencent cloud

Feedback

Deleting the Mini Program

Last updated: 2024-08-06 15:56:25
Note:
The mini program package and information is cached locally for faster opening of the mini program next time. If you want to delete all information of the mini program, you can call the following API to delete a mini program or all mini programs.
Deletes all local data of the mini program with a given ID:
appId: The ID of the mini program
appVerType: The type of the mini program
version: The version of the mini program to delete
Future<void> deleteMiniAppCache(String appId,
{int appVerType = 0, String? version})
appVerType
/// Constants for the mini program package types
class AppVerType {
static const int online = 0;
static const int develop = 1;
static const int preview = 2;
static const int experience = 3;
}
Sample code:
_tcmppFlutterPlugin.deleteMiniAppCache(appId!,0,'1.0.0')

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