Skip to main content
Glama

s3_object_delete

Delete specific objects from an S3 bucket by specifying the bucket name and object key. Simplify S3 data management and cleanup using natural language commands on the AWS MCP Server.

Instructions

Delete an object from S3

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bucket_nameYesName of the S3 bucket
object_keyYesKey/path of the object to delete

Implementation Reference

  • Executes the s3_object_delete tool by calling boto3 S3 client's delete_object method with the provided bucket_name and object_key from arguments.
    elif name == "s3_object_delete": response = s3_client.delete_object( Bucket=arguments["bucket_name"], Key=arguments["object_key"] )
  • Defines the Tool object for s3_object_delete including name, description, and inputSchema specifying required bucket_name and object_key parameters.
    Tool( name="s3_object_delete", description="Delete an object from S3", inputSchema={ "type": "object", "properties": { "bucket_name": { "type": "string", "description": "Name of the S3 bucket" }, "object_key": { "type": "string", "description": "Key/path of the object to delete" } }, "required": ["bucket_name", "object_key"] } ),
  • Registers the list_tools handler which returns all AWS tools including s3_object_delete via get_aws_tools().
    async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rishikavikondala/mcp-server-aws'

If you have feedback or need assistance with the MCP directory API, please join our Discord server