中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
如何删除键值型数据库的备份文件来释放存储空间?
微信扫码分享
let files = ['BK001']; let kvStore: distributedKVStore.SingleKVStore | undefined = undefined;//kvStore获取步骤省略 try { kvStore.deleteBackup(files).then((data) => { console.info(`Succeed in deleting Backup. Data:filename is ${data[0]},result is ${data[1]}.`); }).catch((err: BusinessError) => { console.error(`Fail to delete Backup. Code:${err.code},message:${err.message}`); }) } catch (e) { let error = e as BusinessError; console.error(`An unexpected error occurred. Code:${error.code},message:${error.message}`); }