delete:
var co = require("co");
var OSS = require("ali-oss")
var client = new OSS({
region: "<Your region>",
accessKeyId: "<Your AccessKeyId>",
accessKeySecret: "<Your AccessKeySecret>",
bucket: "Your bucket name"
});
co(function* () {
var result = yield client.delete("object-key");
console.log(result);
}).catch(function (err) {
console.log(err);
});
above is the code for deleting files in Aliyun oss nodejs sdk. I would like to ask you what the object-key passed in should be? I passed in the file address on oss and cannot delete it.