You can manage buckets using deleteBucketApplicationFile, renameBucketApplicationFile, and updateBucketApplicationFile
// It will delete bucket `my-bucket` and sub buckets `my-bucket/sub-bucket` and corresponding files
await deleteBucketApplicationFile(
{ applicationId: "my-application-id" },
{ bucket: `my-bucket` },
);