sitebay_delete_site
Permanently delete a WordPress site from the SiteBay hosting platform. This irreversible action removes all site data and files.
Instructions
Delete a WordPress site permanently. This action cannot be undone.
Args: fqdn: The fully qualified domain name of the site to delete
Returns: Confirmation message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqdn | Yes |
Implementation Reference
- src/sitebay_mcp/tools/sites.py:236-258 (handler)Core handler function that executes the delete site logic by calling the SiteBayClient.delete_site API and formats the success/error response.async def sitebay_delete_site( client: SiteBayClient, fqdn: str, ) -> str: """ Delete a WordPress site permanently. Args: fqdn: The fully qualified domain name of the site to delete Returns: Confirmation message or error """ try: await client.delete_site(fqdn) return ( "✅ **Site Deleted Successfully**\n\n" f"The site {fqdn} has been permanently deleted." ) except SiteBayError as e: return f"Error deleting site: {str(e)}"
- src/sitebay_mcp/server.py:232-244 (registration)MCP tool registration using @mcp.tool decorator. Initializes client and delegates to the core handler in sites.py.@mcp.tool async def sitebay_delete_site(fqdn: str) -> str: """ Delete a WordPress site permanently. This action cannot be undone. Args: fqdn: The fully qualified domain name of the site to delete Returns: Confirmation message """ client = await initialize_client() return await sites.sitebay_delete_site(client, fqdn)