You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tool_cache.go
    path of file: ./repos/bud/internal/cli
    
    the code of the file until where you have to start completion: package cli

import (
	"context"
	"os"

	"github.com/livebud/bud/framework"
)

type ToolCacheClean struct {
	Flag      *framework.Flag
	ListenDev string
}

func (c *CLI) ToolCacheClean(ctx context.Context, in *ToolCacheClean) error {
	module, err := c.findModule()
	if err != nil {
		return
    
func (c *CLI) ToolCacheClean(ctx context.Context, in *ToolCacheClean) error {
	module, err := c.findModule()
	if err != nil {
		return err
	}
	// Remove the old cache
	// TODO: this can be removed in a future release
	if err := os.RemoveAll(module.Directory("bud", ".cache")); err != nil {
		return err
	}
	// Remove the new SQLite cache
	if err := os.RemoveAll(module.Directory("bud", "bud.db")); err != nil {
		return err
	}
	return nil
}