Home > @hapoosjs/api-buckets > Buckets > deleteFile

Buckets.deleteFile() method

Delete a file

Signature:

deleteFile(bucketName: string, filePath: string, versionId?: string): Promise<void>;

Parameters

Parameter Type Description
bucketName string Bucket name
filePath string File key or fully qualified name
versionId string (Optional) Version to be deleted

Returns:

Promise<void>