src/index.js
function (host,accessKey, secretKey, bucket, objectKey, opts = {}) {
    let date = utcDate();
    let resource = genResource(bucket, objectKey, opts);
    let authorization = authorize(accessKey, secretKey, 'DELETE', [], "", date, resource);

    let url = `http://${bucket}.${host}/${objectKey}`;
    let headers = {
        Date: date,
        Authorization: authorization
    };

    return nosRequest({method: 'del', uri: url, headers});
}
function (host,accessKey, secretKey, bucket, objectKey, opts = {}) {
    let date = utcDate();
    let resource = genResource(bucket, objectKey, opts);
    let authorization = authorize(accessKey, secretKey, 'DELETE', [], "", date, resource);

    let url = `http://${bucket}.${host}/${objectKey}`;
    let headers = {
        Date: date,
        Authorization: authorization
    };

    return nosRequest({method: 'del', uri: url, headers});
}
删除一个对象
@param {String} accessKey
@param {String} secretKey
@param {String} bucket
@param {String} objectKey
@param {Object} [opts]
@returns {Promise}