hexo/node_modules/ali-oss/lib/common/bucket/deleteBucketWebsite.js

14 lines
425 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
const { checkBucketName: _checkBucketName } = require('../utils/checkBucketName');
const proto = exports;
proto.deleteBucketWebsite = async function deleteBucketWebsite(name, options) {
_checkBucketName(name);
const params = this._bucketRequestParams('DELETE', name, 'website', options);
params.successStatuses = [204];
const result = await this.request(params);
return {
res: result.res
};
};