Skip to main content
Glama

empty-trash

Remove deleted items from Things 3 to free up space and maintain organization. This tool permanently clears the trash, ensuring your task management system remains clean and efficient.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for the "empty-trash" tool, which uses AppleScript to command Things 3 to empty its trash.
    server.tool("empty-trash", {}, async () => {
      const appleScriptStatus = await getAppleScriptOperationalStatus();
      if (!appleScriptStatus.operational) {
        return buildTextResponse("Unable to empty Things trash", {
          success: false,
          available: appleScriptStatus.available,
          operational: appleScriptStatus.operational,
          error:
            appleScriptStatus.operationalError ?? appleScriptStatus.availabilityError,
        });
      }
    
      const result = await tryAppleScript(
        `tell application "${THINGS_APP_SCRIPT_TARGET}" to empty trash`
      );
      return buildTextResponse(
        result.ok ? "Emptied Things trash" : "Unable to empty Things trash",
        result.ok ? { success: true } : { success: false, error: result.error }
      );
    });

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/soycanopa/SupaThings-MCP'

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