diff --git a/index.js b/index.js index 5b7f05d..31302c7 100644 --- a/index.js +++ b/index.js @@ -106,7 +106,7 @@ S3.prototype.delete = function(path, headers, callback) { callback = headers; headers = {}; } - this.client.delete(path, headers).on('response', function(res) { + this.client.del(path, headers).on('response', function(res) { if (res.statusCode != 200) { return callback(new Error('ERROR: status code = '+res.statusCode), res.body); }