Skip to main content

Class: DeletionService

Constructors

new DeletionService()

new DeletionService(client, objectsService, prefixService): DeletionService

Parameters

client: S3Client

objectsService: ObjectsService

prefixService: PrefixService

Returns

DeletionService

Defined in

utils/deletion.service.ts:10

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.

Defined in

utils/deletion.service.ts:20