Skip to main content
Glama
sitebay
by sitebay

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
NameRequiredDescriptionDefault
fqdnYes

Implementation Reference

  • 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)}"
  • 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)

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/sitebay/sitebay-mcp'

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