async deleteFolder(bucket, folder) {
    const keys = await this.listObjects(bucket, folder);
    const params = {
      Bucket: bucket,
    };

    for (const key of keys) {
      params.Key = key;
      await run(async () => this.sdk.deleteObject(params).promise());
    }
  }
/**
   * Deletes everything inside the folder and the folder itself. The folder should be the full path.
   * An example of a folder is 'studies/Organization/anon-user-get-files-org-study-test-1613828306167-xxxx'
   *
   * @param {string} bucket The bucket name
   * @param {string} folder The full folder path
   */
Deletes everything inside the folder and the folder itself. The folder should be the full path.

@param {string} bucket The bucket name
@param {string} folder The full folder path
Deletes everything inside the folder and the folder itself . The folder should be the full path . @param { string } bucket The bucket name @param { string } folder The full folder path
async deleteFolder(bucket, folder) {
    const keys = await this.listObjects(bucket, folder);
    const params = {
      Bucket: bucket,
    };
    for (const key of keys) {
      params.Key = key;
      await run(async () => this.sdk.deleteObject(params).promise());
    }
  }
async deleteFolder ( bucket , folder ) { const keys = await this . listObjects ( bucket , folder ) ; const params = { Bucket : bucket , } ; for ( const key of keys ) { params . Key = key ; await run ( async ( ) => this . sdk . deleteObject ( params ) . promise ( ) ) ; } }
Deletes everything inside the folder and the folder itself.
Deletes everything inside the folder and the folder itself .