Skip to main content
Glama

configmap_delete

Delete a ConfigMap from a specified namespace in Kubernetes clusters managed by k8s-pilot. Removes configuration data to maintain cluster cleanliness and security.

Instructions

Delete a ConfigMap from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ConfigMap name

Returns: Status of the deletion operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
namespaceYes
nameYes

Implementation Reference

  • The handler function for the 'configmap_delete' tool. It deletes the specified ConfigMap in the given namespace using the Kubernetes CoreV1Api. Includes registration via @mcp.tool() decorator and permission checks.
    @mcp.tool() @use_current_context @check_readonly_permission def configmap_delete(context_name: str, namespace: str, name: str): """ Delete a ConfigMap from the specified namespace. Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ConfigMap name Returns: Status of the deletion operation """ core_v1: CoreV1Api = get_api_clients(context_name)["core"] core_v1.delete_namespaced_config_map(name=name, namespace=namespace) return {"name": name, "status": "Deleted"}

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/bourbonkk/k8s-pilot'

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