Skip to main content
Glama

delete_folder

Remove empty folders from your Dynadot domain management account to organize your domain portfolio.

Instructions

Delete a folder. The folder must be empty (no domains assigned to it).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_idYesFolder ID to delete

Implementation Reference

  • The MCP tool handler for 'delete_folder' which accepts 'folder_id' and calls the DynadotClient.
    server.tool(
      "delete_folder",
      "Delete a folder. The folder must be empty (no domains assigned to it).",
      {
        folder_id: z.string().describe("Folder ID to delete"),
      },
      async ({ folder_id }) => {
        try {
          const result = await client.deleteFolder(folder_id);
          return {
            content: [
              { type: "text" as const, text: JSON.stringify(result, null, 2) },
            ],
          };
        } catch (error) {
          const msg = error instanceof Error ? error.message : String(error);
          return {
            content: [
              { type: "text" as const, text: `Failed to delete folder: ${msg}` },
            ],
            isError: true,
          };
        }
      }
    );
  • The client method that performs the actual API call to delete a folder.
    async deleteFolder(folderId: string): Promise<DynadotResponse> {
      return this.call("delete_folder", { folder_id: folderId });
    }

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/mikusnuz/dynadot-mcp'

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