MCPcopy Index your code
hub / github.com/scality/cloudserver / deleteObject

Function deleteObject

tests/sur/quota.js:142–154  ·  view source on GitHub ↗
(bucket, key, size, cb)

Source from the content-addressed store, hash-verified

140}
141
142function deleteObject(bucket, key, size, cb) {
143 return s3Client.send(new DeleteObjectCommand({
144 Bucket: bucket,
145 Key: key,
146 }))
147 .then(() => {
148 if (!s3Config.isQuotaInflightEnabled()) {
149 mockScuba.incrementBytesForBucket(bucket, -size);
150 }
151 return cb();
152 })
153 .catch(cb);
154}
155
156function deleteVersionID(bucket, key, versionId, size, cb) {
157 return s3Client.send(new DeleteObjectCommand({

Callers 1

quota.jsFile · 0.70

Calls 3

sendMethod · 0.80

Tested by

no test coverage detected