delete_bucket
Remove a storage bucket from Akave's S3-compatible storage system to free up resources and manage your cloud storage infrastructure.
Instructions
Delete a bucket
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | Bucket name |
Implementation Reference
- src/server.ts:273-278 (handler)The main handler function for the delete_bucket tool, which delegates to s3Client.deleteBucket and returns a success response.async ({ bucket }) => { await this.s3Client.deleteBucket(bucket); return { content: [{ type: "text", text: JSON.stringify({ success: true }) }], }; }
- src/server.ts:270-272 (schema)Zod input schema for the delete_bucket tool, defining the required 'bucket' parameter.{ bucket: z.string().describe("Bucket name"), },
- src/server.ts:267-279 (registration)Registration of the 'delete_bucket' MCP tool, including name, description, schema, and handler.this.server.tool( "delete_bucket", "Delete a bucket", { bucket: z.string().describe("Bucket name"), }, async ({ bucket }) => { await this.s3Client.deleteBucket(bucket); return { content: [{ type: "text", text: JSON.stringify({ success: true }) }], }; } );
- src/s3Client.ts:169-174 (helper)S3Client helper method that executes the AWS DeleteBucketCommand.async deleteBucket(bucket: string) { const command = new DeleteBucketCommand({ Bucket: bucket, }); return await this.client.send(command); }