tencent cloud

Tencent Cloud Super App as a Service

Deleting the Mini Program

Download
Focus Mode
Font Size
Last updated: 2025-01-03 15:15:00
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 specific mini program or all mini programs.

Delete a specific mini program

To delete all local data of a mini program with a given ID:
appId: Mini program ID
appVerType: Mini program type
version: Mini program version to be deleted
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;
}
Example:
_tcmppFlutterPlugin.deleteMiniAppCache(appId!,0,'1.0.0')

Delete all mini programs

Future<void> clearMiniAppCache()
Example:
_tcmppFlutterPlugin.clearMiniAppCache()





Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback