tencent cloud

All product documents
Tencent Cloud Super App as a Service
Deleting Mini Programs
Last updated: 2024-11-21 17:56:22
Deleting Mini Programs
Last updated: 2024-11-21 17:56:22
Note:
As the mini program runs, it caches the mini program package and mini program information locally so that it can be opened more quickly next time. If you want to delete all the information of a mini program, you can call the following API to delete a mini program or delete all mini programs.

Delete all mini program caches

/// Remove all caches related to mini programs including resource packs, base libraries, and mini program/game sandbox data.
- (void)clearMiniAppCache;

Delete the specified mini program cache

/// Delete the local cache mini program.
/// @param appID appID to be deleted, defaults to all versions.
- (void)clearCacheWithAppID:(NSString *)appID;

Deletes the specified version and type of mini program

// Delete local cache mini programs
// Delete the local cache mini program.
// @param appID appID to delete, defaults to all versions - appID to delete, defaults to all versions
// @param verType the type of local cache applet to delete - the version type of the mini program to delete
- (void)clearCacheWithAppID:(NSString *)appID verType:(TMAVersionType)verType;
Sample code:
[[TMFMiniAppSDKManager sharedInstance] clearCacheWithAppID:appId verType:verType];

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