Skip to main content
Glama

delete_deployment

Remove a Prefect deployment by its UUID to clean up workflow automation resources and manage your deployment lifecycle.

Instructions

Delete a deployment by ID.

Args: deployment_id: The deployment UUID

Returns: Confirmation message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deployment_idYes

Implementation Reference

  • The handler function for the 'delete_deployment' MCP tool. It is decorated with @mcp.tool for registration and implements the logic to delete a Prefect deployment by ID using the Prefect client, returning a confirmation message.
    @mcp.tool async def delete_deployment( deployment_id: str, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Delete a deployment by ID. Args: deployment_id: The deployment UUID Returns: Confirmation message """ async with get_client() as client: await client.delete_deployment(UUID(deployment_id)) return [types.TextContent(type="text", text=f"Deployment '{deployment_id}' deleted successfully.")]
  • The @mcp.tool decorator registers the delete_deployment function as an MCP tool.
    @mcp.tool

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/allen-munsch/mcp-prefect'

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