Class: DeletionService
Constructors
new DeletionService()
new DeletionService(
client
,objectsService
,prefixService
):DeletionService
Parameters
• client: S3Client
• objectsService: ObjectsService
• prefixService: PrefixService
Returns
Defined in
Methods
deleteObjectsByPrefix()
deleteObjectsByPrefix(
bucket
,prefix
,logDeletedObjects
,deleteOptions
?,listOptions
?):Promise
<boolean
|DeleteObjectOutput
[]>
Deletes all objects by prefix.
Parameters
• bucket: string
• prefix: string
• logDeletedObjects: boolean
= false
• deleteOptions?: DeleteObjectsOptions
• listOptions?: Omit
<ListObjectsV2Options
, "Prefix"
| "ContinuationToken"
>
Returns
Promise
<boolean
| DeleteObjectOutput
[]>
Returns true if all objects were deleted.