Product Overview
Features and Strengths
Use Cases
System Limits
//Step 1: Introduce the Web SDK.import tcb from "@cloudbase/js-sdk";//Step 2: Perform initialization.const app = tcb.init({env: "your-env-id"});//Step 3: Authenticate login. The following code is not complete. You need to select a login method. For details, see Quick Start > Login and User Cases.const auth = app.auth({persistence: "local" //The login authentication remains valid for 30 days until the user logs out or changes the password.});app.deleteFile({fileList: ["cloud://a/b/c", "cloud://d/e/f"]}).then((res) => {console.log(res.fileList);});
//First, use wx.cloud.init for initialization. There is no need to import the SDK again on the mini program side, and authentication is not required.wx.cloud.deleteFile({fileList: ["cloud://a/b/c", "cloud://d/e/f"]}).then((res) => {console.log(res.fileList);});
const tcb = require("@cloudbase/node-sdk");const app = tcb.init();app.deleteFile({fileList: ["cloud://a/b/c", "cloud://d/e/f"]}).then((res) => {console.log(res.fileList);});
フィードバック