code: function (req, res) {
                  var s3 = new AWS.S3(),
                      bucket = req.params.name,
                      key = getFullKeyParam(req.params, req.route),
                      params = {
                          Bucket: bucket,
                          Delete: {
                              Objects: [{
                                  Key: key
                              }]
                          }
                      },
                      
                      handleDeleteObjects = function (err, data) {
                          if (err) {
                              res.status(500).send(err);
                          } else {
                              res.json(data);
                          }
                      };
                  s3.deleteObjects(params, handleDeleteObjects);
              }
docs: Set strict routing that /buckets/test/abc is not the same as /buckets/test/abc/ adding the slash at the end denotes creating a folder and not a file