tencent cloud

All product documents
Tencent Cloud Super App as a Service
Deleting the Mini Program
Last updated: 2025-01-03 15:15:00
Deleting the Mini Program
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()




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