You can manage buckets using deleteBucketApplicationFile, renameBucketApplicationFile, and updateBucketApplicationFile
// It will delete bucket `my-bucket` and sub buckets `my-bucket/sub-bucket` and corresponding filesawaitdeleteBucketApplicationFile( { applicationId:"my-application-id" }, { bucket:`my-bucket` },);
// It will rename bucket // `my-bucket` -> `new-bucket`// `my-bucket/sub-bucket` -> `new-bucket/sub-bucket/`awaitrenameBucketApplicationFile( { applicationId:"my-application-id" }, { bucket:`my-bucket`, newBucket:`new-bucket` },);
// It will update bucket for corresponding file// Before: file.bucket => `old-bucket/sub-bucket`// After: file.bucket => `my-bucket/`awaitupdateBucketApplicationFile( { applicationId:"my-application-id" }, { bucket:`my-bucket`, applicationFileIds: ["file-id"] },);
Client App
Create new bucket
You can create a new bucket by moving to a specific bucket path and upload a new file.