tencent cloud

Tencent Cloud Super App as a Service

문서Tencent Cloud Super App as a Service

Deleting Mini Programs

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 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();


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백