Protected
Delete an object from a bucket.
Use a bare-bones client and the command you need to make an API call.
import { BucketsClient, DeleteObjectsCommand } from "@stedi/sdk-client-buckets"; // ES Modules import// const { BucketsClient, DeleteObjectsCommand } = require("@stedi/sdk-client-buckets"); // CommonJS importconst client = new BucketsClient(config);const input = { // DeleteObjectsInput bucketName: "STRING_VALUE", // required objects: [ // ObjectKeyList // required { // ObjectKeyItem key: "STRING_VALUE", }, ],};const command = new DeleteObjectsCommand(input);const response = await client.send(command);// { // DeleteObjectsOutput// deleted: [ // DeletedObjectsSuccessList// { // DeletedObjectsSuccessItem// key: "STRING_VALUE",// },// ],// errors: [ // DeletedObjectsErrorList// { // DeletedObjectsErrorItem// key: "STRING_VALUE",// code: "STRING_VALUE",// message: "STRING_VALUE",// },// ],// };
DeleteObjectsCommandInput
DeleteObjectsCommandOutput
input
response
config
NoSuchBucketException (client fault)
NoSuchKeyException (client fault)
AccessDeniedException (client fault)
ProductUnavailableException (client fault)
ResourceAlreadyExistsException (client fault)
ResourceNotFoundException (client fault)
ResourceUnderChangeException (client fault)
ServiceException (server fault)
BucketsServiceException
Base exception class for all service exceptions from Buckets service.
Readonly
Static
Delete an object from a bucket.
Example
Use a bare-bones client and the command you need to make an API call.
Param
DeleteObjectsCommandInput
Returns
DeleteObjectsCommandOutput
See
input
shape.response
shape.config
shape.Throws
NoSuchBucketException (client fault)
Throws
NoSuchKeyException (client fault)
Throws
AccessDeniedException (client fault)
Throws
ProductUnavailableException (client fault)
Throws
ResourceAlreadyExistsException (client fault)
Throws
ResourceNotFoundException (client fault)
Throws
ResourceUnderChangeException (client fault)
Throws
ServiceException (server fault)
Throws
BucketsServiceException
Base exception class for all service exceptions from Buckets service.